Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Caching Strategy?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-caching-strategy)
---
name: caching-strategy
description: "Caching with correct invalidation: what to cache, TTLs, cache-aside vs write-through, stampede protection."
tags: [backend, performance]
---
# Caching Strategy
## When to use
- Slow reads, expensive computations, rate-limited upstreams
## Procedure
1. Measure hit potential
2. Choose pattern and key design
3. Set TTLs and invalidation triggers
4. Protect against stampedes (locks, jitter)
5. Monitor hit rate
## Checklist
- [ ] Invalidation tested
- [ ] Stale data acceptable or prevented
## Anti-patterns
- Caching without invalidation
- Caching per-user data in shared keys