Complete the code to set multiple fields in a Redis hash using HMSET.
HMSET user:1000 [1]
The HMSET command requires field-value pairs to set multiple fields at once. Option B provides both fields and their values.
Complete the code to retrieve multiple fields from a Redis hash using HMGET.
HMGET user:1000 [1]
HMGET retrieves the values of the specified fields. To get multiple fields, list them all after the key.
Fix the error in the HMSET command to correctly set multiple fields.
HMSET user:1000 [1]
HMSET requires each field and value to be quoted strings without commas. Option A is the correct syntax.
Fill both blanks to set and then get multiple fields in Redis.
HMSET user:2000 [1] HMGET user:2000 [2]
HMSET needs field-value pairs (option A). HMGET needs the field names to retrieve (option B).
Fill all three blanks to set multiple fields, then retrieve them in Redis.
HMSET user:3000 [1] HMGET user:3000 [2] HMGET user:3000 [3]
HMSET sets fields and values (A). The first HMGET retrieves the name fields (B). The second HMGET retrieves other fields (D).