Skip to content

Support for Client-Side Caching (Tracking / Caching of Invalidation Messages) #998

@a-khakimov

Description

@a-khakimov

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions