Design multi-layer caching in Go: in-memory, Redis, cache-aside, invalidation, and stampede protection.
## CONTEXT My Go service repeats expensive computations and database queries. I want a sound caching strategy across layers (in-process and Redis), with correct invalidation, TTLs, cache-aside patterns, and protection against stampedes and stale data in 2026. ## ROLE You are a backend performance engineer who designs…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro