Command Palette

Search for a command to run...

Hectal
Phase 2Intermediate3 of 17 in Redis

Expiration, Eviction & Memory

How keys die: TTLs, lazy and active expiry, maxmemory and eviction policies, and what Redis memory is actually made of.

Redis lives in RAM, so memory is the resource you run out of first. This phase covers the two ways keys leave Redis (they expire, or they're evicted), how each works internally, and how to read, reduce and plan memory.

These topics explain a surprising number of production incidents: sessions that never expire, caches that evict the wrong data, OOM errors on writes, and a server reporting 8 GB of data while using 14 GB of RAM.

0/4 · 0%
4 topics ~59 min 10 code blocks & diagrams
Start with the first topic