Decide what caches where (CDN, app, Redis) and how entries die so staleness stays bounded.
Scanned 9/29/2026
npx -y skills add aniruddhaadak80/skills --skill caching-queues-cache-strategy-layers --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Caching Queues Cache Strategy Layers?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/aniruddhaadak80-caching-queues-cache-strategy-layers)More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.
---
name: caching-queues-cache-strategy-layers
description: "Decide what caches where (CDN, app, Redis) and how entries die so staleness stays bounded."
---
# Layer caching with explicit invalidation
> Decide what caches where (CDN, app, Redis) and how entries die so staleness stays bounded.
**Track:** ⚙️ Backend Engineering · **Domain:** Caching & Queues · **Level:** intermediate · **~35 min**
**Who this is for:** Backend Engineers, API Developers, Platform Engineers, Full-Stack Developers
## When to Use This Skill
Decide what caches where (CDN, app, Redis) and how entries die so staleness stays bounded.
Use it whenever a matching task appears in conversation — the agent loads these instructions on demand.
## Steps
1. Classify data: immutable (cache forever), mutable-TTL, never-cache (money)
2. Cache at CDN for anonymous GETs with stale-while-revalidate
3. Memoize expensive computed objects in-process with short TTL
4. Use Redis for shared cross-instance state; set TTLs on everything
5. Invalidate by key pattern on write events, not manual flushes
6. Monitor hit-rate per layer; below 60% means wrong layer or wrong keys
## Common Pitfalls
- Caching authenticated responses at shared CDN edge
- Thundering herd on expiry without jitter or locks
## Commands
**Install with skills CLI**
```bash
npx skills add aniruddhaadak80/skills --skill caching-queues-cache-strategy-layers
```
**Install globally**
```bash
npx skills add aniruddhaadak80/skills --skill caching-queues-cache-strategy-layers -g
```
---
Part of [aniruddhaadak80/skills](https://github.com/aniruddhaadak80/skills) · Browse all at https://skills.sh/aniruddhaadak80/skillsIs this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!