Complete the code to set the Redis eviction policy to remove the least recently used keys.
CONFIG SET maxmemory-policy [1]The allkeys-lru policy evicts the least recently used keys when memory limit is reached.
Complete the code to set Redis to evict only keys with an expiration time using a random eviction policy.
CONFIG SET maxmemory-policy [1]The volatile-random policy evicts random keys but only those with an expiration set.
Fix the error in the command to set Redis eviction policy to remove the least frequently used keys among all keys.
CONFIG SET maxmemory-policy [1]The allkeys-lfu policy evicts the least frequently used keys regardless of expiration.
Fill both blanks to set Redis to evict keys randomly but only those with expiration time.
CONFIG SET maxmemory-policy [1] CONFIG SET maxmemory [2]
Setting volatile-random evicts random keys with expiration, and setting maxmemory to 100mb limits memory usage.
Fill all three blanks to configure Redis to evict the least recently used keys among all keys and set maxmemory to 50mb.
CONFIG SET maxmemory-policy [1] CONFIG SET maxmemory [2] CONFIG SET [3] 5
allkeys-lru evicts least recently used keys, 50mb sets the memory limit, and maxmemory-samples controls how many keys Redis samples to decide eviction candidates.