Performance
Cache
A cache stores copies of frequently requested data in a fast access medium to reduce load on the primary storage system.
Diagram
Without cache (slow): With cache (fast):
───────────────────── ─────────────────────
Client → Server Client → Server
→ DB query (~50ms) → Redis.get() (~0.2ms)
→ Return → HIT! Return immediatelyIn Depth
A cache is a high-speed data storage layer that stores a copy of active data so that subsequent requests for the same information are served faster.
Related Terms