Actions36
- 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
- Keys
- List Length
- List Range
- 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
Overview
The node "Redis Enhanced" provides a comprehensive interface to interact with a Redis database, supporting a wide range of operations including data retrieval, insertion, deletion, and advanced commands like blocking pops from lists. The "Blocking Pop Right" operation specifically allows the user to perform a blocking pop from the right end of a Redis list, optionally waiting for a specified timeout if the list is empty.
This node is beneficial in scenarios where real-time or near-real-time processing of queued data is required, such as consuming tasks from a job queue, processing messages, or handling event streams stored in Redis lists. For example, it can be used to implement worker processes that wait for new jobs pushed into a Redis list and process them as they arrive.
Properties
| Name | Meaning |
|---|---|
| List | Name of the Redis list from which to pop the element. |
| Timeout | Time in seconds to wait for an element if the list is empty; 0 means wait indefinitely. |
| Name | Property name under which the popped data will be stored in the output JSON (supports dot-notation). |
| Value Is JSON | Whether the value stored in the key is JSON or key-value pairs (used when key type is hash). |
Output
The output JSON contains the following structure for the "Blocking Pop Right" operation:
- A property named as specified by the "Name" input property, containing the popped element's value.
- If the popped element is valid JSON, it is parsed and returned as an object/array.
- Otherwise, the raw string value is returned.
- An additional property
listindicating the name of the list from which the element was popped. - If no element is popped within the timeout period, the property named by "Name" will be
null.
No binary data output is produced by this operation.
Example output JSON:
{
"propertyName": { /* parsed JSON object or raw string */ },
"list": "myList"
}
Dependencies
- Requires a Redis server accessible via credentials configured in n8n.
- Needs an API key credential or equivalent Redis authentication configured in n8n.
- Uses the Redis client library internally to connect and execute commands.
Troubleshooting
- Timeouts: If the timeout is set too low, the operation may return
nullfrequently because no elements are available to pop. Increase the timeout or set it to 0 to wait indefinitely. - Connection errors: Ensure Redis credentials are correct and the Redis server is reachable.
- JSON parsing errors: If the popped data is not valid JSON but "Value Is JSON" is enabled, parsing will fail silently and the raw string will be returned instead.
- Empty list: If the list does not exist or is empty, the operation waits up to the timeout before returning
null. - Permission issues: Make sure the Redis user has permission to perform blocking pop commands on the specified list.