summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/hset.md
blob: 42e15c127ddcc4ff45cabe355bca1a9d2fd240aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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.

@return

@integer-reply: The number of fields that were added.

@examples

```cli
HSET myhash field1 "Hello"
HGET myhash field1
```