Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redis Client Side Caching for .Net

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)

like image 363
Radu Pascal Avatar asked Jun 25 '26 23:06

Radu Pascal


2 Answers

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;

  • RESP3 protocol and also client side caching.
  • High speed auto pipelining algorithim

https://github.com/TheUniversalCity/RedisClient

like image 96
Mustafa Çağlar Aras Avatar answered Jun 28 '26 17:06

Mustafa Çağlar Aras


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.

like image 30
AwesomeHunter Avatar answered Jun 28 '26 17:06

AwesomeHunter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!