Redis Enhanced icon

Redis Enhanced

Get, send and update data in Redis with enhanced operations

Overview

This node, named "Redis Enhanced," provides advanced interaction capabilities with a Redis database. It supports a wide range of Redis operations including data retrieval, insertion, deletion, and manipulation of various Redis data types such as strings, lists, hashes, sets, and sorted sets.

The Pop operation specifically allows users to remove and retrieve an element from a Redis list. It can pop from either the start (head) or the end (tail) of the list, depending on configuration. This is useful in scenarios like queue processing where you want to consume items from a list one by one.

Practical examples:

  • Consuming tasks from a Redis-backed queue by popping items from the head or tail.
  • Retrieving the latest or oldest message stored in a Redis list for processing.
  • Integrating Redis list consumption into workflows that require real-time or batch processing of queued data.

Properties

Name Meaning
List The name of the Redis list from which to pop data.
Tail Boolean flag indicating whether to pop from the end (true) or the start (false) of the list.
Name Optional property name where the popped data will be stored in the output JSON. Supports dot-notation for nested properties.
Options Collection of additional options:
  Dot Notation Boolean flag controlling whether dot-notation is used when writing the popped data to the output property. If true, dot-notation is enabled (default). If false, the property name is treated as a literal key.

Output

The node outputs an array of JSON objects, each corresponding to an input item processed. For the Pop operation:

  • The output JSON contains the popped value from the specified Redis list under the configured property name.
  • If the popped value is valid JSON, it is parsed and returned as a structured object; otherwise, it is returned as a string.
  • If no element is available to pop (e.g., the list is empty), the property will be set to null.
  • The output respects the dot-notation option, meaning the popped value can be nested inside the JSON structure according to the property name.

No binary data output is produced by this operation.

Dependencies

  • Requires a Redis server accessible via credentials configured in n8n.
  • Needs an API key credential or connection details for Redis authentication.
  • Uses the official Redis client library for Node.js.
  • No additional external services are required beyond Redis itself.

Troubleshooting

  • Empty list returns null: If the list is empty, the pop operation returns null. Ensure the list has elements before popping.
  • Invalid JSON parsing error: If the popped value is expected to be JSON but is malformed, the node will return the raw string instead. Verify the data format stored in Redis.
  • Connection errors: Failure to connect to Redis may occur due to incorrect credentials, network issues, or Redis server downtime. Check connection settings and Redis availability.
  • Property name conflicts: Using dot-notation incorrectly or specifying conflicting property names may cause unexpected output structure. Adjust the "Dot Notation" option accordingly.
  • Operation not supported: Ensure the operation parameter is correctly set to "pop" for this functionality.

Links and References

Discussion