summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/hmset.md
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/data/commands/hmset.md')
-rw-r--r--iredis/data/commands/hmset.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/iredis/data/commands/hmset.md b/iredis/data/commands/hmset.md
new file mode 100644
index 0000000..f66a364
--- /dev/null
+++ b/iredis/data/commands/hmset.md
@@ -0,0 +1,18 @@
+Sets the specified fields to their respective values in the hash stored at
+`key`. This command overwrites any specified fields already existing in the
+hash. If `key` does not exist, a new key holding a hash is created.
+
+As per Redis 4.0.0, HMSET is considered deprecated. Please use `HSET` in new
+code.
+
+@return
+
+@simple-string-reply
+
+@examples
+
+```cli
+HMSET myhash field1 "Hello" field2 "World"
+HGET myhash field1
+HGET myhash field2
+```