Skip to content

Redis ​

Read, write, delete, and count keys in a Redis instance, read and write hash fields, list keys by pattern, publish messages to channels, and inspect server information

This node signs in with a credential: Redis Connection. See Connect a credential.

Actions ​

Steps this node can perform. Add one from Add a step, then pick the action.

Delete Key ​

Delete a key from Redis

Settings

FieldTypeRequiredDescription
KeyTextYesKey to delete

Output

Later steps use this data by picking this step in the $ picker. For example, deleted is $.<step ID>.output.deleted.

json
{
  "deleted": false,
  "deletedCount": 0,
  "key": "string"
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
deletedYes / NoWhether the key existed and was removed
deletedCountNumberNumber of keys removed (0 or 1)
keyTextThe key that was deleted

Get Value ​

Get the value of a key from Redis

Settings

FieldTypeRequiredDescription
KeyTextYesKey to read
Parse JSONYes / NoDecode the stored value as JSON and expose it as a structured object
Default: false

Output

Later steps use this data by picking this step in the $ picker. For example, found is $.<step ID>.output.found.

json
{
  "found": false,
  "key": "string",
  "parsed": {},
  "ttlSeconds": 0,
  "value": "string"
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
foundYes / NoWhether the key exists
keyTextThe key that was read
parsedObjectThe value decoded as JSON. Present only when Parse JSON is enabled and the value is valid JSON
ttlSecondsNumberRemaining time to live in seconds. -1 when the key has no expiry, -2 when the key does not exist
valueTextThe raw string value stored at the key. Empty when the key does not exist

Get Hash Field ​

Get the value of a single field in a Redis hash

Settings

FieldTypeRequiredDescription
KeyTextYesHash key to read
FieldTextYesField to read
Parse JSONYes / NoDecode the stored field value as JSON and expose it as a structured object
Default: false

Output

Later steps use this data by picking this step in the $ picker. For example, field is $.<step ID>.output.field.

json
{
  "field": "string",
  "found": false,
  "key": "string",
  "parsed": {},
  "value": "string"
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
fieldTextThe field that was read
foundYes / NoWhether the field exists
keyTextThe hash key that was read
parsedObjectThe field value decoded as JSON. Present only when Parse JSON is enabled and the value is valid JSON
valueTextThe raw string value stored at the field. Empty when the hash or the field does not exist

Get Hash ​

Get every field and value of a Redis hash

Settings

FieldTypeRequiredDescription
KeyTextYesHash key to read

Output

Later steps use this data by picking this step in the $ picker. For example, count is $.<step ID>.output.count.

json
{
  "count": 0,
  "fields": {},
  "found": false,
  "key": "string"
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
countNumberNumber of fields returned
fieldsObjectEvery field of the hash as field/value pairs. Empty when the hash does not exist
foundYes / NoWhether the hash exists
keyTextThe hash key that was read

Set Hash Field ​

Set the value of a single field in a Redis hash, creating the hash if it does not exist

Settings

FieldTypeRequiredDescription
KeyTextYesHash key to write
FieldTextYesField to write
ValueTextYesValue to store. Objects and arrays are stored as JSON
Expire After (seconds)NumberExpire the whole hash after this many seconds. Leave 0 to keep the current expiry. Redis cannot expire a single field
Default: 0

Output

Later steps use this data by picking this step in the $ picker. For example, created is $.<step ID>.output.created.

json
{
  "created": false,
  "field": "string",
  "key": "string",
  "success": false,
  "ttlSeconds": 0
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
createdYes / NoTrue when the field was added, false when an existing field was overwritten
fieldTextThe field that was written
keyTextThe hash key that was written
successYes / NoWhether the field was written
ttlSecondsNumberExpiry applied to the hash in seconds. 0 means the expiry was left untouched

Increment Key ​

Atomically increment a key by 1. Creates the key if it does not exist

Settings

FieldTypeRequiredDescription
KeyTextYesKey to increment. Must hold an integer value if it already exists

Output

Later steps use this data by picking this step in the $ picker. For example, key is $.<step ID>.output.key.

json
{
  "key": "string",
  "value": 0
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
keyTextThe key that was incremented
valueNumberThe value after the increment

Get Server Info ​

Return generic information about the Redis instance

Settings

FieldTypeRequiredDescription
SectionChoiceINFO section to return
Options: All, Server, Clients, Memory, Persistence, Stats, Replication, CPU, Keyspace
Default: all

Output

Later steps use this data by picking this step in the $ picker. For example, info is $.<step ID>.output.info.

json
{
  "info": {},
  "raw": "string",
  "section": "string"
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
infoObjectParsed INFO output, grouped by section name
rawTextUnparsed INFO output as returned by the server
sectionTextThe requested INFO section

List Keys ​

Return the keys matching a pattern, filtered to a single Redis type so every result can be fed into the matching read action

Settings

FieldTypeRequiredDescription
PatternTextYesGlob-style pattern, for example user:* or *:session
Default: *
LimitNumberMaximum number of keys to return (1-10000). The result is marked as truncated when more keys match
Default: 1000
TypeChoiceRedis type to list. String keys work with Get Value, hash keys with Get Hash
Options: String, Hash, List, Set, Sorted Set, Any
Default: string

Output

Later steps use this data by picking this step in the $ picker. For example, count is $.<step ID>.output.count.

json
{
  "count": 0,
  "keys": [
    "string"
  ],
  "pattern": "string",
  "truncated": false,
  "type": "string"
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
countNumberNumber of keys returned
keys[]ListMatching string keys
patternTextThe glob pattern that was matched
truncatedYes / NoTrue when more keys match the pattern than the configured limit
typeTextThe Redis type the result was filtered to

Publish Message ​

Publish a message to a Redis channel

Settings

FieldTypeRequiredDescription
ChannelTextYesChannel to publish to
MessageTextYesMessage payload. Objects and arrays are published as JSON

Output

Later steps use this data by picking this step in the $ picker. For example, channel is $.<step ID>.output.channel.

json
{
  "channel": "string",
  "receivers": 0
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
channelTextThe channel the message was published to
receiversNumberNumber of subscribers that received the message

Set Value ​

Set the value of a key in Redis, with an optional expiry

Settings

FieldTypeRequiredDescription
KeyTextYesKey to write
ValueTextYesValue to store. Objects and arrays are stored as JSON
Expire After (seconds)NumberExpire the key after this many seconds. Leave 0 for no expiry
Default: 0
Write ModeChoiceWhen the value should be written
Options: Always, Only If Not Exists, Only If Exists
Default: always

Output

Later steps use this data by picking this step in the $ picker. For example, key is $.<step ID>.output.key.

json
{
  "key": "string",
  "skipped": false,
  "success": false,
  "ttlSeconds": 0
}

Example values show the shape of the data, not real values. See Using data from earlier steps.

Field descriptions
FieldTypeDescription
keyTextThe key that was written
skippedYes / NoTrue when the write condition (Only If Not Exists / Only If Exists) was not met, so nothing was written
successYes / NoWhether the value was written
ttlSecondsNumberExpiry applied to the key in seconds. 0 means no expiry