summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/hmset.md
blob: 0b2876a9fb971e0ae6ea472e0182469430d469d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 prefer `HSET` in new
code.

@return

@simple-string-reply

@examples

```cli
HMSET myhash field1 "Hello" field2 "World"
HGET myhash field1
HGET myhash field2
```