HEXISTS

Since 1.1.0Hashes

Syntax

HEXISTS key field
  • Flags: fast, readonly
  • ACL categories: @fast, @hash, @read
  • Arity: 3

Tells whether field exists in the hash at key.

Reply

  • 1 if it exists, 0 if not.

Examples

> HSET u name Ada
(integer) 1
> HEXISTS u name
(integer) 1
> HEXISTS u nope
(integer) 0