Redis Advanced icon

Redis Advanced

Get, send and update data in Redis with enhanced operations

List Length

AI-generated

Summary

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.

Discussion