Complete the code to set a string value for a key in Redis.
SET user:1000 [1]
The SET command stores a string value. The value must be quoted if it contains spaces or special characters.
Complete the code to set a field in a Redis hash.
HSET user:1000 [1] "John"
The HSET command sets a field in a hash. The field name here is name.
Fix the error in the command to get a field from a Redis hash.
HGET user:1000 [1]
The HGET command requires the field name to retrieve its value from the hash.
Fill both blanks to set multiple fields in a Redis hash.
HMSET user:1000 [1] [2]
The HMSET command sets multiple fields and values in a hash. Each field and its value are paired.
Fill all three blanks to retrieve multiple fields from a Redis hash.
HMGET user:1000 [1] [2] [3]
The HMGET command retrieves multiple fields from a hash. You list the fields you want.
