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
List Length
AI-generatedSummary
Get the length of a Redis list by specifying its name.
Inputs
- List (required) — Name of the Redis list to get the length of.
Output shape
a list containing an object with the list name and its length
The output JSON will include properties 'list' (the list name) and 'length' (the integer length of the list). The operation handles one input item at a time and outputs one item per input with the length result.
Examples
Example 1: Get the length of a Redis list named 'myList'.
Set 'List' parameter to 'myList'. The output will be an object like {"list":"myList","length":42} if the list has 42 elements.