Backend Developer
mediumredis-cache-aside
How does Redis caching work with the cache-aside pattern?
Answer
Cache-aside means the application manages the cache.
**Flow:**
- Read: check Redis → on miss, read DB → write Redis
- Write: update DB → invalidate or update Redis
**Key decisions:** TTL, key design, stampede protection (locks/jitter), and invalidation strategy.
Related Topics
CachingRedisPerformance