summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/hexists.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/hexists.md')
-rw-r--r--iredis/data/commands/hexists.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/iredis/data/commands/hexists.md b/iredis/data/commands/hexists.md
new file mode 100644
index 0000000..4581b63
--- /dev/null
+++ b/iredis/data/commands/hexists.md
@@ -0,0 +1,16 @@
+Returns if `field` is an existing field in the hash stored at `key`.
+
+@return
+
+@integer-reply, specifically:
+
+- `1` if the hash contains `field`.
+- `0` if the hash does not contain `field`, or `key` does not exist.
+
+@examples
+
+```cli
+HSET myhash field1 "foo"
+HEXISTS myhash field1
+HEXISTS myhash field2
+```