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
Sorted Set Cardinality
AI-generatedSummary
Retrieve the number of members in a specified sorted set in Redis.
Inputs
- Sorted Set (required) — The name of the sorted set in Redis whose cardinality (number of members) you want to get.
Output shape
a list of items, each containing a JSON object with 'sortedSet' (the name of the sorted set) and 'cardinality' (the count of members)
Outputs one item per input with the cardinality of the sorted set. If an error occurs during execution, it may return an error object depending on node settings.
Examples
Example 1: Get the cardinality of a sorted set named 'mySortedSet'
Set 'Sorted Set' to 'mySortedSet' and choose operation 'Sorted Set Cardinality'. The output JSON includes {'sortedSet':'mySortedSet','cardinality':number_of_members}.