redis maxmemory-policy evicting keys I thought were permanent
Redis 7.2, used as a cache. We set maxmemory 4gb and maxmemory-policy allkeys-lru. Keys we thought were permanent (no TTL) keep disappearing under load. I was under the impression allkeys-lru only evicts keys with an expire set. Is that wrong? We've had two incidents where keys vanished and nobody could explain it, so I want the actual semantics rather than a guess.
4 replies