Skip to main content

Usage

Returns all values in the hash stored at key.

Parameters

key
string
required
The key of the hash

Response

values
TData[]
An array of values in the hash. Returns an empty array if the key does not exist.Values are automatically parsed from JSON when possible.

Examples

Get all values

Working with typed data

Process all values

Non-existent key

Count occurrences

Filter values

Check for duplicates

Sum numeric values

Validate all values

Export values list

Notes

  • The order of values in the returned array is not guaranteed
  • The order corresponds to the order of fields returned by HKEYS
  • Returns an empty array for non-existent keys
  • Use HGETALL if you need both field names and values
  • For very large hashes, consider using HSCAN to iterate incrementally

See Also

  • HKEYS - Get all field names in a hash
  • HGETALL - Get all fields and values in a hash
  • HGET - Get a specific hash field value