CLUSTER COUNTKEYSINSLOT

CLUSTER COUNTKEYSINSLOT

CLUSTER COUNTKEYSINSLOT slot
Available since
3.0.0
Time complexity
O(1)
ACL categories
@slow

Returns the number of keys in the specified Redict Cluster hash slot. The command only queries the local data set, so contacting a node that is not serving the specified hash slot will always result in a count of zero being returned.

> CLUSTER COUNTKEYSINSLOT 7000
(integer) 50341

Redict logo courtesy of @janWilejan, CC-BY-SA-4.0. Download SVG ⤑

Portions of this website courtesy of Salvatore Sanfilippo, CC-BY-SA-4.0.