Complete the code to set a key named 'color' with the value 'blue' in Redis.
SET color [1]The Redis SET command stores a value for a key. The value should be given without quotes in the command line.
Complete the code to get the value of the key 'color' from Redis.
[1] colorThe GET command retrieves the value stored for a given key in Redis.
Fix the error in the command to delete the key 'color' from Redis.
[1] colorThe correct command to delete a key in Redis is DEL. Other options are invalid commands.
Fill both blanks to set a key 'count' with value 10 and then expire it after 60 seconds.
SET count [1] EXPIRE count [2]
First, set the key 'count' to 10. Then use EXPIRE to make it expire after 60 seconds.
Fill all three blanks to increment the key 'visits' by 1, get its value, and then delete it.
INCR [1] GET [2] DEL [3]
All commands operate on the same key 'visits'. Increment, get, and delete must use the exact same key name.