summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/zcard.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/zcard.md')
-rw-r--r--iredis/data/commands/zcard.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/iredis/data/commands/zcard.md b/iredis/data/commands/zcard.md
new file mode 100644
index 0000000..5ad5043
--- /dev/null
+++ b/iredis/data/commands/zcard.md
@@ -0,0 +1,15 @@
+Returns the sorted set cardinality (number of elements) of the sorted set stored
+at `key`.
+
+@return
+
+@integer-reply: the cardinality (number of elements) of the sorted set, or `0`
+if `key` does not exist.
+
+@examples
+
+```cli
+ZADD myzset 1 "one"
+ZADD myzset 2 "two"
+ZCARD myzset
+```