Complete the code to set the Redis server port to 6379.
port [1]The default Redis port is 6379. Setting port 6379 configures Redis to listen on this port.
Complete the code to enable Redis persistence with RDB snapshots every 900 seconds if at least 1 key changed.
save [1] 1
The save 900 1 directive tells Redis to save the DB if at least 1 key changed in 900 seconds.
Fix the error in the line to disable protected mode in Redis configuration.
protected-mode [1]To disable protected mode, set protected-mode no. Using 'yes' or boolean strings causes errors.
Fill both blanks to configure Redis to require a password and set it to 'mypassword'.
requirepass [1] # Uncomment to enable password # requirepass [2]
The requirepass directive sets the password Redis requires for clients. Both blanks must be the same password.
Fill all three blanks to configure Redis to bind only to localhost, disable protected mode, and set maxmemory to 256mb.
bind [1] protected-mode [2] maxmemory [3]
Binding to 127.0.0.1 restricts Redis to localhost. Disabling protected mode requires 'no'. Setting maxmemory to '256mb' limits memory usage.