Skip to content

Redis

Read and write data to a Redis cache. The Redis node supports a wide range of operations across strings, lists, hashes, sets, and pub/sub -- all through a single configurable node.

Requires a Redis connection.

Configuration

FieldDescriptionNotes
Redis ConnectionThe Redis connection to useRequired. Select from your configured Redis connections.
OperationThe Redis command to executeRequired. See the operation tables below.

Additional fields appear depending on the selected operation.

Operations

String Operations

OperationDescriptionRequired Fields
GETRetrieve the value of a keyKey
SETSet a key to a valueKey, Value
DELDelete a keyKey
EXISTSCheck whether a key existsKey
INCRIncrement a numeric key by a given amountKey
DECRDecrement a numeric key by a given amountKey
EXPIRESet a time-to-live (TTL) on a keyKey, TTL
TTLGet the remaining TTL of a key in secondsKey
MGETRetrieve values for multiple keys at onceKeys (comma-separated)
MSETSet multiple key-value pairs at onceKey-Value Pairs (JSON)

List Operations

OperationDescriptionRequired Fields
LPUSHPush a value to the beginning of a listKey, Value
RPUSHPush a value to the end of a listKey, Value
LPOPRemove and return the first element of a listKey
RPOPRemove and return the last element of a listKey
LRANGEReturn a range of elements from a listKey, Range Start, Range Stop

Hash Operations

OperationDescriptionRequired Fields
HGETGet the value of a hash fieldKey, Hash Field
HSETSet a hash field to a valueKey, Hash Field, Value
HGETALLGet all fields and values in a hashKey
HDELDelete a hash fieldKey, Hash Field

Set Operations

OperationDescriptionRequired Fields
SADDAdd a member to a setKey, Value
SREMRemove a member from a setKey, Value
SMEMBERSGet all members of a setKey
SISMEMBERCheck if a value is a member of a setKey, Value

Pub/Sub

OperationDescriptionRequired Fields
PUBLISHPublish a message to a channelChannel, Value

Scanning

OperationDescriptionRequired Fields
SCANIterate over keys matching a patternPattern, Count Hint

Operation-Specific Fields

These fields appear conditionally based on the selected operation.

FieldDescriptionShown For
KeyThe Redis key to operate on. Supports templates.All operations except MGET, MSET, SCAN
Keys (comma-separated)Multiple keys, one per entry. Supports templates.MGET
Key-Value Pairs (JSON)A JSON object mapping keys to values, e.g. {"key1": "value1", "key2": "value2"}.MSET
ValueThe value to store or publish. Supports templates.SET, LPUSH, RPUSH, HSET, SADD, SREM, SISMEMBER, PUBLISH
Hash FieldThe field name within a Redis hash. Supports templates.HGET, HSET, HDEL
Set ModeControls conditional writes: Always (default), Only If Not Exists (NX), or Only If Exists (XX).SET
TTL (seconds)Expiration time in seconds.SET, EXPIRE
Increment ByThe amount to increment or decrement. Defaults to 1.INCR, DECR
Range StartThe start index for the list range. Defaults to 0.LRANGE
Range StopThe stop index for the list range. Defaults to -1 (end of list).LRANGE
ChannelThe pub/sub channel name. Supports templates.PUBLISH
PatternA glob-style pattern to match keys. Defaults to *.SCAN
Count HintApproximate number of keys to return per scan iteration. Defaults to 100.SCAN
Value TypeWhether the value should be treated as a plain String or as JSON. When set to JSON, values are serialized before writing and automatically deserialized on read.SET, HSET, LPUSH, RPUSH

Output

The node outputs a single item with the following fields:

FieldDescription
operationThe Redis command that was executed
keyThe key that was operated on (not present for MGET, MSET, SCAN, PUBLISH)
resultThe result returned by Redis (value, list, hash map, boolean, or count depending on the operation)

For MGET, the output includes keys (the list of requested keys) and result (an array of values).

For MSET, the output includes pairs (the key-value map) and result.

For SCAN, the output includes pattern and result (the list of matching keys).

For PUBLISH, the output includes channel, message, and subscribers (the number of clients that received the message).

TIP

When Value Type is set to JSON, read operations (GET, HGET, LRANGE, SMEMBERS, HGETALL, LPOP, RPOP) automatically attempt to parse stored JSON strings back into structured objects. This makes it easy to round-trip complex data through Redis.

Use Cases

  • Caching API responses -- Store expensive HTTP results with a TTL and retrieve them in later runs.
  • Shared counters -- Use INCR/DECR to maintain counters across workflow executions.
  • Workflow coordination -- Use sets or lists to track processed item IDs and avoid duplicates.
  • Real-time messaging -- Use PUBLISH to send messages to external subscribers listening on Redis channels.