HEXISTS

Syntax
HEXISTS key field
Available since:
2.0.0
Time complexity:
O(1)
ACL categories:
@read, @hash, @fast,

如果field是存储在key中的哈希的现有字段,则返回。

示例

HSET myhash field1 "foo" HEXISTS myhash field1 HEXISTS myhash field2

RESP2/RESP3 回复

以下之一:

  • Integer reply: 0 如果哈希不包含该字段,或者键不存在。
  • Integer reply: 如果哈希包含该字段,则返回 1

RATE THIS PAGE
Back to top ↑