Skip to main content

Usage

Returns the value associated with field in the hash stored at key.

Parameters

key
string
required
The key of the hash
field
string
required
The field in the hash to get

Response

value
TData | null
The value associated with the field, or null when the field is not present in the hash or the key does not exist.

Examples

Get a hash field value

Working with typed data

See Also

  • HSET - Set hash field values
  • HGETALL - Get all fields and values in a hash
  • HMGET - Get multiple hash field values