cache-management
OfficialProduction-grade caching to speed apps.
AuthorVilnaCRM-Org
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Caching in complex systems often leads to stale data, brittle invalidation, and fragmented implementations. This Skill standardizes caching with policy-driven design, SWR patterns, and event-driven invalidation to keep data fresh while maximizing performance.
Core Features & Use Cases
- Decorator pattern wrapping repositories to implement read-through caching
- Centralized key generation via CacheKeyBuilder and tag-based invalidation
- Stale-While-Revalidate (SWR) with best-effort cache operations and observability
- Event-driven cache invalidation using domain events for decoupled workflows
- Production and test cache configurations with proper pools and tags
- Comprehensive unit/integration testing guidance to validate cache paths
Quick Start
Configure a CachedXxxRepository decorator, wire domain-event invalidation subscribers, and run the cache tests to verify SWR, TTLs, and tag-based invalidation work as intended.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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-management Download link: https://github.com/VilnaCRM-Org/core-service/archive/main.zip#cache-management Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.