Start here. This is the direct spoken answer to practice first.
Why this question matters
A cache is allowed to forget things, but unplanned eviction can look like random latency, database spikes, or missing state.
When Redis reaches its memory limit, behavior depends on the configured policy. It may evict keys, reject writes, or evict only keys with TTLs. For cache-aside data, eviction usually means more cache misses and more source reads. For data treated like state, eviction can be a serious correctness problem.