summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/hexists.md
blob: 4581b63b5a9ba8a396a0b6c9780ae5d4a9495ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Returns if `field` is an existing field in the hash stored at `key`.

@return

@integer-reply, specifically:

- `1` if the hash contains `field`.
- `0` if the hash does not contain `field`, or `key` does not exist.

@examples

```cli
HSET myhash field1 "foo"
HEXISTS myhash field1
HEXISTS myhash field2
```