What problem does it solve?
This Skill solves slow .NET read performance and unnecessary database or API load by guiding correct caching strategies that stay consistent with application data.
Core Features & Use Cases
- HybridCache-first design: Uses .NET 9+ HybridCache as the default unified L1/L2 caching abstraction with stampede protection.
- Correct invalidation patterns: Keeps cached reads consistent by removing or evicting entries on mutations instead of caching write responses.
- Response-level performance: Applies output caching for whole HTTP responses using middleware and cache tags for targeted eviction.
- Safety guardrails: Encourages explicit TTLs, avoids caching mutable or user-specific global data, and prevents hand-rolled stampede protection.
Quick Start
Load this skill when you are implementing caching in a .NET 10 app and you need guidance on when to use HybridCache, output caching, and cache invalidation.