CLUSTER
Calculates a key's hash slot through KEYSLOT.
Server & administration · Example verified
Syntax covered here
CLUSTER KEYSLOT keyKEYSLOT is verified on a standalone server; this does not establish cluster operation, routing or failover.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> CLUSTER KEYSLOT foo
12182