System Design · Concept
Cache-Aside
Cache-aside makes the application check the cache first and use the database after a miss. The application then stores the database result in the cache for later reads.
Last updated
Syntax
get(key) → value; if missing: database query → cache.set(key, value)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Write-throughWrite-behind (write-back)Refresh-aheadCacheWhen to update the cache