Skip to main content

Redis Operations Reference

Orkes Conductor integrates with Redis to let you manage keys, values, and data structures directly from your workflows. Once you configure the Redis integration, you can use the following operations to read and write data, manage key expiration, and interact with Redis pub/sub channels.

This page covers the parameters and expected output for each operation available in the Redis integration.

Set Value

Sets a string value for a key, with optional expiration and conditional write support.

ParameterDescriptionTypeRequired/Optional
KeyThe key to set.stringRequired.
ValueThe value to store.stringRequired.
TTL SecondsThe time to live in seconds. Set to 0 for no expiry.integerOptional.
Only If AbsentWhether to set the key only if it does not already exist.booleanOptional.

Get Value

Retrieves a string value for a specified key.

ParameterDescriptionTypeRequired/Optional
KeyThe key to retrieve.stringRequired.

Set Hash Field

Upserts a single field in a hash key.

ParameterDescriptionTypeRequired/Optional
KeyThe hash key name.stringRequired.
FieldThe field name to set.stringRequired.
ValueThe value to store in the field.stringRequired.

Get Hash

Retrieves all fields and values from a hash key.

ParameterDescriptionTypeRequired/Optional
KeyThe hash key name to retrieve.stringRequired.

List Keys

Lists keys matching a specified pattern using SCAN.

ParameterDescriptionTypeRequired/Optional
PatternThe glob-style pattern to match keys against. Defaults to * (all keys).stringOptional.
LimitThe maximum number of keys to return.integerOptional.

Delete Keys

Deletes one or more keys from the Redis database.

ParameterDescriptionTypeRequired/Optional
KeysA comma-separated list of keys to delete.stringRequired.

Get TTL

Retrieves the remaining time to live for a key in seconds.

ParameterDescriptionTypeRequired/Optional
KeyThe key to inspect.stringRequired.

Increment By

Increments a counter key by a specified delta value.

ParameterDescriptionTypeRequired/Optional
KeyThe key to increment.stringRequired.
DeltaThe amount to increment by. Defaults to 1.integerOptional.

Publish Message

Publishes a message to a Redis pub/sub channel.

ParameterDescriptionTypeRequired/Optional
ChannelThe channel name to publish to.stringRequired.
MessageThe message payload to publish.stringRequired.

Get Info

Retrieves information and statistics about the Redis instance.

ParameterDescriptionTypeRequired/Optional
SectionThe INFO section to retrieve (e.g., server, clients). If not provided, all sections are returned.stringOptional.