Redis Advanced icon

Redis Advanced

Get, send and update data in Redis with enhanced operations

Blocking Pop Left

AI-generated

Summary

Perform a blocking pop operation from the left side of a Redis list, waiting for an element if the list is empty up to a specified timeout.

Inputs

  • List (required) — Name of the Redis list to pop an element from.
  • Timeout — Number of seconds to wait for an element if the list is empty; 0 means wait indefinitely.
  • Name — Property name to write the popped data to inside the output JSON object.

Output shape

A single item JSON object containing the popped element under the specified property name. If an element is received, also includes the list name as 'list'. If the timeout is reached without receiving data, the property value is null.

The popped value is parsed as JSON if possible; otherwise, returned as a string. The operation blocks up to the timeout duration waiting for data. The output uses dot notation for the property name if applicable.

Examples

Example 1: Blocking pop from list named 'myQueue' with 5 seconds timeout, output in property 'poppedData'

Set List to 'myQueue', Timeout to 5, Name to 'poppedData'.

Discussion