Complete the code to set the maximum memory limit in Redis configuration.
CONFIG SET maxmemory [1]The maxmemory setting controls the maximum memory Redis can use. Setting it to 100mb limits Redis to 100 megabytes.
Complete the code to enable AOF persistence in Redis.
CONFIG SET [1] yesThe appendonly setting enables AOF persistence, which logs every write operation. Setting it to yes turns it on.
Fix the error in the command to set the eviction policy to 'allkeys-lru'.
CONFIG SET maxmemory-policy [1]The maxmemory-policy setting controls how Redis evicts keys when memory is full. allkeys-lru evicts the least recently used keys from all keys.
Fill both blanks to configure Redis to save snapshots every 60 seconds if at least 1000 keys changed.
CONFIG SET save "[1] [2]"
The save setting defines snapshot intervals. 60 1000 means save if 1000 keys changed in 60 seconds.
Fill all three blanks to configure Redis to disable AOF, set max clients to 500, and set timeout to 300 seconds.
CONFIG SET appendonly [1] CONFIG SET maxclients [2] CONFIG SET timeout [3]
Setting appendonly to no disables AOF persistence. maxclients limits client connections to 500. timeout sets idle client timeout to 300 seconds.