Actions37
- Append
- Blocking Pop Left
- Blocking Pop Right
- Delete
- Eval
- Exists
- Expire
- Expire At
- Get
- Get Set
- Hash Exists
- Hash Keys
- Hash Length
- Hash Values
- Increment
- Info
- Keys
- List Length
- Multi Get
- Multi Set
- Persist
- Pop
- Publish
- Push
- Scan
- Set
- Set Add
- Set Cardinality
- Set Is Member
- Set Members
- Set Remove
- Sorted Set Add
- Sorted Set Cardinality
- Sorted Set Range
- Sorted Set Remove
- String Length
- TTL
Overview
The "Redis Enhanced" node provides a comprehensive interface to interact with a Redis database, supporting a wide range of operations such as getting, setting, deleting keys, manipulating lists, sets, sorted sets, hashes, and executing Lua scripts. The "Blocking Pop Right" operation specifically allows the user to perform a blocking pop from the right end of a Redis list. This means the node will wait (optionally with a timeout) until an element is available at the right end of the specified list and then remove and return it.
This operation is beneficial in scenarios where you want to implement queue-like behavior with Redis lists, especially when consumers need to wait for new data to arrive without continuously polling. For example, a worker process can use this node to block until a job is available in a Redis list, ensuring efficient resource usage.
Properties
| Name | Meaning |
|---|---|
| List | Name of the Redis list from which to pop the element on the right. |
| Timeout | Number of seconds to wait for an element if the list is empty. 0 means wait indefinitely. |
| Name | Property name under which the popped value will be stored in the output JSON. |
| Value Is JSON | Whether the popped value should be parsed as JSON or treated as a plain string (only shown for hash key types, not relevant here). |
Output
The output JSON contains the following structure:
- A property named as specified by the Name input property (default
"propertyName"), containing the popped element's value.- If the popped element is valid JSON, it is parsed into an object/array; otherwise, it remains a string.
- An additional property
listindicating the name of the list from which the element was popped. - If no element is popped (e.g., timeout reached without any element), the property named by Name will be
null.
Example output JSON:
{
"propertyName": { /* parsed JSON object or string value */ },
"list": "myList"
}
No binary data output is produced by this operation.
Dependencies
- Requires a Redis server accessible via credentials configured in n8n.
- Requires an API key credential or connection details for Redis authentication.
- Uses the Redis client library internally to connect and execute commands.
Troubleshooting
- Timeouts: If the node waits indefinitely or longer than expected, verify the Timeout parameter and Redis server responsiveness.
- Empty results: If the output property is
null, it means no element was available before the timeout expired. - JSON parsing errors: If the popped value is not valid JSON but Value Is JSON is enabled elsewhere (not directly applicable here), parsing may fail silently and fallback to string.
- Connection issues: Errors connecting to Redis will throw exceptions; ensure credentials and network access are correct.
- Invalid list name: Ensure the list name exists and is correctly spelled.