summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/hlen.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/hlen.md')
-rw-r--r--iredis/data/commands/hlen.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/iredis/data/commands/hlen.md b/iredis/data/commands/hlen.md
new file mode 100644
index 0000000..2c18193
--- /dev/null
+++ b/iredis/data/commands/hlen.md
@@ -0,0 +1,13 @@
+Returns the number of fields contained in the hash stored at `key`.
+
+@return
+
+@integer-reply: number of fields in the hash, or `0` when `key` does not exist.
+
+@examples
+
+```cli
+HSET myhash field1 "Hello"
+HSET myhash field2 "World"
+HLEN myhash
+```