Complete the code to set the field 'name' to 'Alice' in the hash 'user:1'.
HSET user:1 [1] Alice
The HSET command sets a field in a hash. Here, the field is name.
Complete the code to get the value of the field 'email' from the hash 'user:2'.
HGET user:2 [1]
The HGET command retrieves the value of a specific field in a hash. Here, the field is email.
Fix the error in the command to set the field 'age' to 30 in the hash 'user:3'.
HSET [1] age 30
The hash key must match exactly. The correct key is user:3 with a colon.
Fill both blanks to set the field 'city' to 'Paris' in the hash 'location:1'.
HSET [1] [2] Paris
The first blank is the hash key location:1. The second blank is the field name city.
Fill both blanks to get the value of the field 'phone' from the hash 'contact:5'.
HGET [1] [2]
The first blank is the hash key contact:5. The second blank is the field name phone.