summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/hlen.md
blob: 2c1819343535381a301657e3885e9531e74d7eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Returns the number of fields contained in the hash stored at `key`.

@return

@integer-reply: number of fields in the hash, or `0` when `key` does not exist.

@examples

```cli
HSET myhash field1 "Hello"
HSET myhash field2 "World"
HLEN myhash
```