Actions37
- Append
- Blocking Pop Left
- Blocking Pop Right
- Delete
- Eval
- Exists
- Expire At
- Get
- Get Set
- Hash Exists
- Hash Keys
- Hash Length
- Hash Values
- Increment
- Info
- JSON Get
- JSON Set
- Keys
- List Length
- Multi Get
- Multi Set
- Persist
- Pop
- Publish
- Push
- Scan
- Set
- Set Add
- Set Cardinality
- Set Is Member
- Set Remove
- Sorted Set Add
- Sorted Set Cardinality
- Sorted Set Range
- Sorted Set Remove
- String Length
- TTL
Hash Length
AI-generatedSummary
Get the number of fields stored in a specified hash key in Redis.
Inputs
- Hash (required) — The name of the Redis hash key to query.
Output shape
A single JSON object containing the hash name and the number of fields in the hash.
The output JSON has the format { hash: string, length: number }. This operation does not support pagination or additional fields.
Examples
Example 1: Retrieve the count of fields in the Redis hash named 'user:1000'.
Set 'Hash' to 'user:1000' and select operation 'Hash Length'.