Caching Strategy

Design a cache layer — cache-aside read/write/invalidate, TTL + jitter, stampede prevention (single-flight / probabilistic refresh), and explicit invalidation. Use when read latency is high, the DB is read-bound, or a hot key causes thundering-herd load. Not for fixing the slow query at its source (use query-optimization first) or HTTP/browser caching (a frontend concern).

JayKim88 Updated

File contents

JayKim88/claude-ai-engineering/tree/main/plugins/backend-toolkit/skills/caching-strategy commit 44372a27fa

Frequently asked questions

npx skillmds@latest add jaykim88/caching-strategy