What problem does it solve?
This Skill addresses the challenge of maintaining cache integrity by providing a method for selectively invalidating cache entries, ensuring that read paths reflect the most current data.
Core Features & Use Cases
- Cache Policy Management: Define and apply cache policies with specific time-to-live (TTL) and tags for different entity types.
- Tag-based Eviction: Use shared tags to evict cache entries across various read paths simultaneously, simplifying invalidation processes.
- Service-Level Caching: Integrates with service-level caching mechanisms, with an option to opt-in for Redis-based caching.
- Use Case: For instance, in a system with read-heavy data access patterns, this Skill can help ensure that changes to data are reflected in the UI in real-time by invalidating the relevant cache entries.
Quick Start
Run the cache policy eviction command with the 'EvictByTagAsync' method for the 'invoices' tag to clear the cache for all related entity reads.