All Questions
Redis medium

What is the primary operational difference between the `volatile-lru` and `allkeys-lru` eviction policies in Redis?

  1. A `volatile-lru` only evicts keys with a TTL; `allkeys-lru` can evict any key regardless of expiration settings.
  2. B `volatile-lru` deletes keys that have been modified recently; `allkeys-lru` deletes keys that are static.
  3. C `allkeys-lru` is strictly restricted to String types, while `volatile-lru` can evict any complex data type.
  4. D There is no functional difference; both policies use a randomized sampling of the entire keyspace for speed.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions