Complete the code to check if Redis is running in protected mode.
CONFIG GET [1]The Redis configuration parameter protected-mode controls if Redis runs in protected mode.
Complete the command to disable protected mode in Redis configuration.
CONFIG SET [1] [2]
To disable protected mode, set protected-mode to no. Here, the second blank should be 'no'.
Fix the error in the command to enable protected mode.
CONFIG SET protected-mode [1]To enable protected mode, the value must be yes.
Fill both blanks to check the current protected mode status and set it to 'no'.
CONFIG GET [1] CONFIG SET [2] no
Both commands use the protected-mode parameter to get and set its value.
Fill all three blanks to get, set protected mode to 'yes', and verify the change.
CONFIG GET [1] CONFIG SET [2] [3] CONFIG GET protected-mode
The first and second blanks are the parameter name protected-mode. The third blank is the value yes to enable protected mode.