Complete the code to start Redis server with a configuration file.
redis-server [1]The Redis server is started by specifying the path to the configuration file directly.
Complete the code to enable Redis persistence by setting the snapshot save interval.
save [1]The 'save' directive requires two values: seconds and changes. '900 1' means save after 900 seconds if at least 1 change occurred.
Fix the error in the Redis configuration line to require a password for clients.
requirepass [1]The 'requirepass' directive must be followed by a non-empty password string to enable authentication.
Fill both blanks to configure Redis to run as a background daemon and log to a file.
daemonize [1] logfile [2]
Setting 'daemonize yes' runs Redis in the background. The 'logfile' path specifies where logs are saved.
Fill all three blanks to configure Redis max memory, eviction policy, and append-only file.
maxmemory [1] maxmemory-policy [2] appendonly [3]
Setting maxmemory limits Redis memory usage. 'allkeys-lru' evicts least recently used keys when memory is full. 'appendonly yes' enables data durability.