Redis Pro icon

Redis Pro

Get, send and update data in Redis with enhanced features

Overview

This node interacts with a Redis database, specifically supporting the 'Push' operation to add data to a Redis list. It allows pushing data either to the head or the tail of a specified Redis list. This is useful in scenarios where you need to manage queue-like data structures or maintain ordered collections in Redis, such as task queues, message buffers, or event logs.

Use Case Examples

  1. Push a JSON message to the head of a Redis list named 'taskQueue' for processing by workers.
  2. Add a string message to the tail of a Redis list to maintain order of events.

Properties

Name Meaning
Connection Mode Determines how Redis connections are managed: either reusing pooled connections for better performance or creating a new connection each time for safety.
Value Is JSON Indicates whether the value being pushed is JSON formatted or key-value pairs. This is shown only when the key type is 'hash'.
List The name of the Redis list to which data will be pushed.
Data The actual data to push onto the Redis list.
Tail Determines whether to push data to the end (tail) of the list (true) or to the beginning (head) of the list (false).

Output

JSON

  • json - The output JSON object contains the original input data with the pushed data reflected, typically unchanged as push operations do not return data.

Dependencies

  • Requires a Redis server connection with appropriate credentials (an API key credential for Redis).

Troubleshooting

  • Connection errors may occur if Redis credentials are incorrect or the Redis server is unreachable. Verify credentials and network connectivity.
  • If the list name is empty or invalid, the push operation will fail. Ensure the 'List' property is correctly set.
  • Pushing data that is not properly formatted as JSON when 'Value Is JSON' is true may cause unexpected behavior. Validate JSON formatting before pushing.

Links

  • Redis LPUSH Command - Official Redis documentation for pushing elements to the head of a list.
  • Redis RPUSH Command - Official Redis documentation for pushing elements to the tail of a list.

Discussion