Cache-aside

Application checks the cache first and, on a miss, loads from the data store and populates the cache.

In cache-aside (lazy loading) the application, not the cache, manages what is cached: read from cache, fall back to the database on a miss, then store the result with an expiry; on writes, update the store and invalidate the cache entry. It is simple and widely used with Redis or Memcached. Stale reads and cache stampedes must be handled.

Type
Architecture pattern
Category
Architecture
License
Free
Pricing
Free
Level
Beginner
Technologies
architecture, caching, redis
Last verified
26 Nov 2026

What Cache-aside is used for

  • Read-heavy data
  • Reducing database load

Strengths

  • Simple
  • Caches only what is used

Limitations

  • Stale data risk
  • Miss penalty
  • Invalidation complexity

How it relates to other tools

  • Cache-aside works with Redis

Built with the same technologies

Official links

Sources

Explore