Redis 6 has introduced a feature supporting Client Side Caching and is described in here: https://redis.io/topics/client-side-caching
I tried out the ServiceStack.Redis and StackExchange.Redis clients, but couldn’t make either of them handle it.
Can anyone help with a working example in C#/.Net? (any client)
2
Answers
It doesn’t seem either of them support it yet.
If you mean ANY clients,version 6.0.0.RC1 redis client Lettuce for Java languages supports it now.
It’s the most popular redis-client on the most used language, and its support for Redis 6.0 is only added a few days ago.
So it’s not surprising to find that most other clients have not implemented it yet.
You can try the high performance RESP3 supported TheUniversalCity.RedisClient library linked below. If you use the client caching mechanism, you’ll see about 30x faster than Stackexchange.Redis. Even if you don’t use the client caching mechanism, it’s already at least twice as fast as Stackexchange.Redis.
This library support;
https://github.com/TheUniversalCity/RedisClient