blob: a97594748b2344a49f3361c5ead56908f0a1f064 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Sets `field` in the hash stored at `key` to `value`. If `key` does not exist, a
new key holding a hash is created. If `field` already exists in the hash, it is
overwritten.
As of Redis 4.0.0, HSET is variadic and allows for multiple `field`/`value`
pairs.
@return
@integer-reply: The number of fields that were added.
@examples
```cli
HSET myhash field1 "Hello"
HGET myhash field1
```
|