backend-caching

Installation
SKILL.md

Backend Caching

Use this skill when

  • Caching queries and API responses
  • Choosing cache tiers (in-memory, Redis, CDN)
  • Invalidation strategies

Do not use this skill when

  • The data changes every request (caching is a liability)
  • Frontend/browser caching

Instructions

  1. Cache only data that is read-heavy and tolerates staleness.
  2. Key caches by full query context; include version in keys where schemas evolve.
  3. Choose scoped invalidation: explicit evict on write, or TTL with tolerance.
  4. Use cache-aside vs write-through deliberately.
  5. Protect from stampede: single-flight/mutex on cache miss.
  6. Set TTLs with business-appropriate staleness.
  7. Monitor hit-rate and correctness (a wrong cache is worse than no cache).
Installs
1
First Seen
Oct 22, 2026
Security Audits