Actions35
- 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
- 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
This node, "Redis Enhanced," provides advanced interaction 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. This is useful in scenarios like implementing queues or stacks where you want to consume items from a list stored in Redis.
Practical examples:
- Consuming tasks from a Redis queue by popping from the head.
- Retrieving the most recently added item by popping from the tail.
- Processing messages or events stored in a Redis list.
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 (tail) of the list (true) or from the start (false). |
| Name | Optional property name to store the popped value in the output JSON. Supports dot-notation for nested assignment. Example: "data.person[0].name". |
| Options | Collection of additional options: |
| Dot Notation | Boolean flag controlling whether dot-notation is used when setting the output property. If true (default), "a.b" sets nested property {a: {b: value}}. If false, it sets a flat property { "a.b": value }. |
Output
The output contains the popped value from the specified Redis list under the property name defined by the user (default "propertyName"). The value is parsed as JSON if possible; otherwise, it is returned as a string.
The output JSON structure looks like this (assuming default property name):
{
"propertyName": <popped_value>
}
Where <popped_value> is the data popped from the list, either as a parsed JSON object/array or as a raw string if parsing fails.
If dot-notation is enabled and the property name includes dots, the value will be nested accordingly.
Dependencies
- Requires a Redis server connection configured via credentials providing necessary authentication.
- Uses the Redis client library to connect and perform commands.
- No additional external services are required beyond Redis itself.
Troubleshooting
- Empty list: Popping from an empty list returns
nullfor the popped value. - Invalid JSON: If the popped value is not valid JSON, it will be returned as a plain string.
- Connection issues: Errors connecting to Redis or during command execution will throw errors unless "Continue On Fail" is enabled.
- Property name conflicts: Using dot-notation incorrectly may cause unexpected nesting in output JSON. Disable dot-notation if flat keys are desired.
- Missing list name: The "List" property is required; omitting it will cause an error.