content/commands/hexists.md
Returns if field is an existing field in the hash stored at key.
{{% redis-cli %}} HSET myhash field1 "foo" HEXISTS myhash field1 HEXISTS myhash field2 {{% /redis-cli %}}
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | |
{{< multitabs id="hexists-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
0 if the hash does not contain the field, or the key does not exist.1 if the hash contains the field.-tab-sep-
One of the following:
0 if the hash does not contain the field, or the key does not exist.1 if the hash contains the field.{{< /multitabs >}}