summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/hexists.md
blob: f27678a67a6b8b91bfe9b20d0bc0f88a75676833 (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
```