ioredis icon indicating copy to clipboard operation
ioredis copied to clipboard

Is there a plan for supporting client caching?

Open vipcxj opened this issue 4 years ago • 5 comments

The most important feature in redis 6 seems to be client caching. Is there a plan for supporting client caching?

vipcxj avatar Jul 16 '20 08:07 vipcxj

Thanks for bringing this up. It's not on the roadmap for the moment but I think it's nice to have. Any PRs and discussions are welcome.

luin avatar Jul 25 '20 15:07 luin

We are wanting to use server assisted client side caching as well.

andrewdep avatar Apr 19 '21 18:04 andrewdep

Any updates on this topic? Interested to help, but not too familiar with libs internals.

Edit: sorry, didn't look through hard enough, found this issue which explains it all https://github.com/luin/ioredis/issues/1073

metalcamp avatar Aug 09 '21 13:08 metalcamp

Seems like supporting client-side caching is not likely for the near future https://github.com/luin/ioredis/pull/1504#issuecomment-1030865630

eugene1g avatar Feb 09 '22 15:02 eugene1g

Before the implementation of the resp3 protocol handler will be started, it would be useful to spec out an api and requirements for client side invalidation.

According to https://redis.io/topics/client-side-caching#two-connections-mode RESP2 would also already work with a PUB/SUB approach.

So anybody with a use-case or free time would be welcome to tackle that.

marcbachmann avatar Feb 09 '22 16:02 marcbachmann