Complete the command to get the hash slot for a key.
CLUSTER KEYSLOT [1]The CLUSTER KEYSLOT command requires the key name without quotes to return its hash slot.
Complete the command to get all keys in a specific hash slot.
CLUSTER GETKEYSINSLOT [1] 5
The command CLUSTER GETKEYSINSLOT requires the slot number as the first argument. Slot 0 is a valid slot number.
Fix the error in the command to get the hash slot for a key.
CLUSTER KEYSLOT [1]The CLUSTER KEYSLOT command expects the key name without quotes. Using quotes causes a syntax error.
Fill both blanks to get keys from slot 1000 with a count of 3.
CLUSTER GETKEYSINSLOT [1] [2]
The first argument is the slot number (1000), and the second is the count of keys to return (3).
Fill all three blanks to get the hash slot for key 'session:42' and then get 2 keys from that slot.
SET key session:42 SLOT = CLUSTER KEYSLOT [1] CLUSTER GETKEYSINSLOT [2] [3]
First, provide the key name 'session:42' to get its slot. Then use the variable SLOT to get keys from that slot with count 2.