summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/strlen.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/strlen.md')
-rw-r--r--iredis/data/commands/strlen.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/iredis/data/commands/strlen.md b/iredis/data/commands/strlen.md
new file mode 100644
index 0000000..99a9c55
--- /dev/null
+++ b/iredis/data/commands/strlen.md
@@ -0,0 +1,15 @@
+Returns the length of the string value stored at `key`. An error is returned
+when `key` holds a non-string value.
+
+@return
+
+@integer-reply: the length of the string at `key`, or `0` when `key` does not
+exist.
+
+@examples
+
+```cli
+SET mykey "Hello world"
+STRLEN mykey
+STRLEN nonexisting
+```