Databases · Middle · Question 53 of 75
What happens when Redis reaches its maxmemory limit?
- ✓Correct answer: It applies the configured eviction policy (e.g.
allkeys-lru) or rejects writes if the policy isnoeviction - 2It crashes
- 3It writes the extra data to disk automatically
Explanation
For a cache, LRU or LFU eviction is typical. For data you can't lose (queues, locks), eviction is dangerous, so use noeviction or a separate instance.