Complete the code to authenticate with Redis using the password.
AUTH [1]The AUTH command requires the correct password to authenticate the client. Here, 'password123' is the password set in requirepass.
Complete the code to set the requirepass in the Redis configuration file.
requirepass [1]The requirepass directive in redis.conf sets the password clients must use to authenticate. 'password123' is the example password here.
Fix the error in the command to authenticate with Redis.
AUTH [1]The AUTH command must be followed by the password only. Including 'AUTH' twice or extra text like 'auth password123' causes errors.
Fill both blanks to authenticate and then set a key in Redis.
AUTH [1] SET mykey [2]
First, authenticate with the correct password 'password123'. Then set the key 'mykey' to the value 'world'.
Fill all three blanks to authenticate, set a key, and retrieve it.
AUTH [1] SET [2] [3] GET mykey
Authenticate with 'password123', set the key 'mykey' to 'hello', then retrieve it with GET.