How it works
Where caches live
Caches sit in the client, CDN, application memory, or a shared store like Redis.
Invalidation
Strategies include time-to-live expiry, write-through, and write-back, each trading freshness for performance.
Eviction
Policies like LRU and LFU decide what to drop when the cache is full.