HGET

Since 1.1.0Hashes

Syntax

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

Returns the value of field in the hash at key.

Reply

  • The value.
  • nil if the field or the key does not exist.

Examples

> HSET u name Ada
(integer) 1
> HGET u name
"Ada"
> HGET u nope
(nil)