cache-policy-eviction

Community

Optimize cache policies and evict stale data efficiently.

AuthorSparkymod
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cache-policy-eviction
Download link: https://github.com/Sparkymod/Template/archive/main.zip#cache-policy-eviction

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.