summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/cluster-countkeysinslot.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/cluster-countkeysinslot.md')
-rw-r--r--iredis/data/commands/cluster-countkeysinslot.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/iredis/data/commands/cluster-countkeysinslot.md b/iredis/data/commands/cluster-countkeysinslot.md
new file mode 100644
index 0000000..0bffec8
--- /dev/null
+++ b/iredis/data/commands/cluster-countkeysinslot.md
@@ -0,0 +1,13 @@
+Returns the number of keys in the specified Redis 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
+```
+
+@return
+
+@integer-reply: The number of keys in the specified hash slot, or an error if the hash slot is invalid.