Hi!
Redis has supported client-side caching since version 6, allowing clients to locally cache read results and receive invalidation messages when keys change. This feature can significantly reduce latency and load for read-heavy applications.
Currently, redis4cats does not seem to support this feature (tracked or broadcast modes), nor does it expose a way to subscribe to invalidation messages.
It would be great to have:
- An API to enable client-side caching (
CLIENT TRACKING with options)
- Support for processing invalidation messages (e.g., via Pub/Sub or RESP3 protocol handling)
- Integration with cache decorators or helpers for local caching
Are there any plans to support this in future versions? I'd be happy to contribute or help discuss the design if needed.
Thanks for your work!