Contact Us 1-800-596-4880

Redis Connector 5.2 Reference - Mule 4

Support Version: Select

You can set configurations in Expression mode, except when Redis Connector is used in conjunction with Object Store Connector, which does not support Expression mode.

Configurations


Redis

Parameters

Name Type Description Default Value Required

Name

String

The name for this configuration. Connectors reference the configuration with this name.

x

Connection

The connection types to provide to this configuration.

x

Expiration Policy

Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the instance expires at the exact moment that it becomes eligible. Mule purges the instances as appropriate.

Connection Types

Clustered
Parameters
Name Type Description Default Value Required

Endpoint identification algorithm

Enumeration, one of:

  • HTTPS

  • LDAPS

  • DISABLED

The endpoint identification algorithm used by clients to validate the server hostname. The default value is an empty string, which means that this functionality is disabled. Clients, including client connections created by the broker for inter-broker communication, verify that the broker hostname matches the hostname in the broker’s certificate.

DISABLED

TLS Configuration

TLS

Configures TLS. If you are running the Mule app securely by using the HTTPS protocol, you must configure TLS in the connector.

Name

Type

Description

Default Value

Required

Cluster Hosts

String

Redis cluster hosts separated by commas and having format host:port. Use this field to have the connector access a Redis cluster.

x

Connection Timeout

Number

Connection timeout in milliseconds.

2000

Password

String

Redis password. Set this value if the server requires authentication.

Entry TTL

Number

The default time to live to be set on keys stored through connector.

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Max Total

Number

8

Max Idle

Number

8

Min Idle

Number

0

Lifo

Boolean

true

Fairness

Boolean

false

Max Wait Millis

Number

-1

Min Evictable Idle Time Millis

Number

1800000

Soft Min Evictable Idle Time Millis

Number

1800000

Num Tests Per Eviction Run

Number

3

Test On Create

Boolean

false

Test On Borrow

Boolean

false

Test On Return

Boolean

false

Test While Idle

Boolean

false

Time Between Eviction Runs Millis

Number

-1

Block When Exhausted

Boolean

true

Jmx Enabled

Boolean

true

Jmx Name Prefix

String

pool

Jmx Name Base

String

NonClustered
Parameters
Name Type Description Default Value Required

Endpoint identification algorithm

Enumeration, one of:

  • HTTPS

  • LDAPS

  • DISABLED

The endpoint identification algorithm used by clients to validate the server hostname. The default value is an empty string, which means that this functionality is disabled. Clients, including client connections created by the broker for inter-broker communication, verify that the broker hostname matches the hostname in the broker’s certificate.

DISABLED

TLS Configuration

TLS

Configures TLS. If you are running the Mule app securely by using the HTTPS protocol, you must configure TLS in the connector.

Host

String

Redis host. Use this field to have the connector access a Redis server that is not part of a cluster.

localhost

Port

Number

The port on which the Redis server is running.

6379

Connection Timeout

Number

Connection timeout in milliseconds.

2000

Password

String

Redis password. Set this in case that the server requires authentication.

Entry TTL

Number

The default time to live to be set on keys stored through connector.

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy

Max Total

Number

8

Max Idle

Number

8

Min Idle

Number

0

Lifo

Boolean

true

Fairness

Boolean

false

Max Wait Millis

Number

-1

Min Evictable Idle Time Millis

Number

1800000

Soft Min Evictable Idle Time Millis

Number

1800000

Num Tests Per Eviction Run

Number

3

Test On Create

Boolean

false

Test On Borrow

Boolean

false

Test On Return

Boolean

false

Test While Idle

Boolean

false

Time Between Eviction Runs Millis

Number

-1

Block When Exhausted

Boolean

true

Jmx Enabled

Boolean

true

Jmx Name Prefix

String

pool

Jmx Name Base

String

Associated Sources

Operations

Add To Set

<redis:add-to-set>

Add the message payload to the set stored at the specified key. If the key does not exist, a new key holding a set is created.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for SADD

x

Value

String

The value to set.

#[payload]

Must Succeed

Boolean

If true, ensures that adding to the set is successful (that is, no pre-existing identical value is in the set)

false

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The outcome of the expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

String

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Add To Sorted Set

<redis:add-to-sorted-set>

Add the message payload with the desired score to the sorted set stored at the specified key. If the key does not exist, a new key holding a sorted set is created.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for ZADD

x

Value

String

The value to set.

#[payload]

Score

Number

Score to use for the value

x

Must Succeed

Boolean

If true, ensures that adding to the set is successful (that is, no pre-existing identical value is in the set)

false

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

String

For Configurations

Throws

  • REDIS:

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Decrement

<redis:decrement>

Decrements the number stored at key by step. If the key does not exist, it is set to 0 before performing the operation. An error is returned if the key contains a value of the wrong type or contains data that cannot be represented as integer.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for DECR.

x

Step

Number

Step used for the increment.

1

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Number

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Del

<redis:del>

Remove the specified key. A key is ignored if it does not exist.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for DEL

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The outcome of the expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Number

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Exists

<redis:exists>

Test if the specified key exists.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for EXISTS

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Boolean

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Expire

<redis:expire>

Set a timeout on the specified key.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

The key in the sorted set.

x

Seconds

Number

The time to live in seconds.

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Boolean

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Expire At

<redis:expire-at>

Set a timeout in the form of a UNIX timestamp (number of seconds elapsed since 1 Jan 1970) on the specified key.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

The key in the sorted set.

x

Unix Time

Number

The UNIX timestamp in seconds.

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Boolean

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Get

<redis:get>

Get the value of the specified key. If the key does not exist, a null vavlue is returned.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for GET

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

String

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Get All From Hash

<redis:get-all-from-hash>

Get all fields and values of the hash stored at the specified key. If the field or the hash don’t exist, a null value is returned.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for HGETALL

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Object

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Get From Hash

<redis:get-from-hash>

Get the value stored at the specified field in the hash at the specified key. If the field or the hash don’t exist, a null value is returned.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for HGET

x

Field

String

Field to use for HGET

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

String

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Get Range By Index

<redis:get-range-by-index>

Retrieve a range of values from the sorted set stored at the specified key. The range of values is defined by indices in the sorted set and sorted as desired.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for ZRANGE/ZREVRANGE

x

Start

Number

Range start index

x

End

Number

Range end index

x

Ascending Order

Boolean

Index order for sorting the range. If the parameter is set to true, the range is sorted in ascending order. If the parameter is set to false, the range is sorted in descending order.

true

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Array of String

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Get Range By Score

<redis:get-range-by-score>

Retrieve a range of values from the sorted set stored at the specified key. The range of values is defined by scores in the sorted set and sorted as desired.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for ZRANGEBYSCORE and ZREVRANGEBYSCORE

x

Min

Number

Range start score

x

Max

Number

Range end score

x

Ascending Order

Boolean

Score order for sorting the range. If the parameter is set to true, the range is sorted in ascending order. If the parameter is set to false, the range is sorted in descending order.

true

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Array of String

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Get TTL

<redis:get-ttl>

Get the remaining time to live of a volatile key, in seconds.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

The key in the sorted set.

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Number

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Increment

<redis:increment>

Increments the number stored at key by step. If the key does not exist, it is set to 0 before performing the operation. An error is returned if the key contains a value of the wrong type or contains data that can not be represented as integer.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for INCR.

x

Step

Number

Step used for the increment.

1

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Number

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Increment Hash

<redis:increment-hash>

Increments the number stored at field in the hash stored at key by increment. If the key does not exist, a new key holding a hash is created. If field does not exist the value is set to 0 before the operation is performed.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for HGET

x

Field

String

Field to use for HGET

x

Step

Number

Step used for the increment.

1

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Number

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Increment Sorted Set

<redis:increment-sorted-set>

Increments the score of member in the sorted set stored at key by increment. If member does not exist in the sorted set, it is added with increment as its score (as if its previous score was 0.0). If the key does not exist, a new sorted set with the specified member as its sole member is created.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

The key in the sorted set.

x

Value

String

The value to set.

#[payload]

Step

Number

The step to use to increment the score.

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Number

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Persist

<redis:persist>

Undo an expire or expireAt, turning the volatile key into a normal key.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

The key in the sorted set.

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Boolean

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Pop From List

<redis:pop-from-list>

Pop a value from the desired side of the list stored at the specified key.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for LPOP/RPOP

x

Pop Left

boolean

The side from which to pop the value. If the parameter is true, the value is popped from the left side. If the parameter is false, the value is popped from the right side.

false

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

String

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Pop From Set

<redis:pop-from-set>

Pops a random value from the set stored at the specified key.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for SPOP

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

String

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Publish

<redis:publish>

Publish the message payload to the specified channel.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Channel

String

Destination of the published message

x

Message

String

The message to publish.

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

Boolean

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Push To List

<redis:push-to-list>

Push the message payload to the desired side (LEFT or RIGHT) of the list stored at the specified key. If the key does not exist, a new key holding a list is created as long as ifExists is not true.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for LPUSH or RPUSH, or LPUSHX or RPUSHX.

x

Value

String

The value to push.

#[payload]

Push Left

Boolean

Side that receives the pushed payload. If the parameter is true, push the payload on the left side. If the parameter is false, push the payload on the right side.

false

If Exists

Boolean

If the parameter is true, execute LPUSHX or RPUSHX. If the parameter is false, execute LPUSH or RPUSH.

false

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

String

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Random Member From Set

<redis:random-member-from-set>

Reads a random value from the set stored at the specified key.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for SRANDMEMBER

x

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

String

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Set

<redis:set>

Set the key to hold the payload. If the key already holds a value, it is overwritten, regardless of its type as long as ifNotExists is false.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key used to store payload

x

Value

String

The value to set.

#[payload]

Expire

Number

Set a timeout on the specified key in seconds. After the timeout the key is automatically deleted by the server. A key with an associated timeout is said to be volatile in Redis terminology.

If Not Exists

Boolean

If true, then execute SETNX on the Redis server, otherwise execute SET.

false

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The expression outcome is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

String

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Set In Hash

<redis:set-in-hash>

Set the specified hash field to the message payload. If the key does not exist, a new key holding a hash is created as long as ifNotExists is true.

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Key

String

Key to use for HSET

x

Value

String

The value to set.

#[payload]

Field

String

Field to use for HSET

If Not Exists

Boolean

If true execute HSETNX, otherwise HSET.

false

Target Variable

String

The name of a variable that stores the operation’s output.

Target Value

String

An expression that evaluates against the operation’s output. The outcome of the expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

String

For Configurations

Throws

  • REDIS:CONNECTIVITY

  • REDIS:INVALID_CONFIGURATION

  • REDIS:INVALID_REQUEST_DATA

  • REDIS:INVALID_STRUCTURE_FOR_INPUT_DATA

  • REDIS:RETRY_EXHAUSTED

  • REDIS:UNKNOWN

  • REDIS:UNABLE_TO_UNSUBSCRIBE

Sources

Subscribe

<redis:subscribe>

Parameters

Name Type Description Default Value Required

Configuration

String

The name of the configuration to use.

x

Channels

Array of String

A list of channel names or globbing patterns.

x

Output Mime Type

String

The MIME type of the payload that this operation outputs.

Primary Node Only

Boolean

Whether this source should only be executed on the primary node when running in a cluster.

Streaming Strategy

Configure to use repeatable streams.

Redelivery Policy

Defines a policy for processing the redelivery of the same message.

Reconnection Strategy

A retry strategy in case of connectivity errors.

Output

Type

String

Attributes Type

For Configurations

Types

TLS

Field Type Description Default Value Required

Enabled Protocols

String

A comma-separated list of protocols enabled for this context.

Enabled Cipher Suites

String

A comma-separated list of cipher suites enabled for this context.

Trust Store

Key Store

Revocation Check

Trust Store

Field Type Description Default Value Required

Path

String

The location (which will be resolved relative to the current classpath and file system, if possible) of the trust store.

Password

String

The password used to protect the trust store.

Type

String

The type of store used.

Algorithm

String

The algorithm used by the trust store.

Insecure

Boolean

If true, no certificate validations will be performed, rendering connections vulnerable to attacks. Use at your own risk.

Key Store

Field Type Description Default Value Required

Path

String

The location (which will be resolved relative to the current classpath and file system, if possible) of the key store.

Type

String

The type of store used.

Alias

String

When the key store contains many private keys, this attribute indicates the alias of the key that should be used. If not defined, the first key in the file will be used by default.

Key Password

String

The password used to protect the private key.

Password

String

The password used to protect the key store.

Algorithm

String

The algorithm used by the key store.

Standard Revocation Check

Field Type Description Default Value Required

Only End Entities

Boolean

Only verify the last element of the certificate chain.

Prefer Crls

Boolean

Try CRL instead of OCSP first.

No Fallback

Boolean

Do not use the secondary checking method (the one not selected before).

Soft Fail

Boolean

Avoid verification failure when the revocation server can not be reached or is busy.

Custom Ocsp Responder

Field Type Description Default Value Required

Url

String

The URL of the OCSP responder.

Cert Alias

String

Alias of the signing certificate for the OCSP response (must be in the trust store), if present.

Crl File

Field Type Description Default Value Required

Path

String

The path to the CRL file.

Reconnection

Field Type Description Default Value Required

Fails Deployment

Boolean

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Reconnection Strategy

The reconnection strategy to use.

Reconnect

Field Type Description Default Value Required

Frequency

Number

How often in milliseconds to reconnect.

Count

Number

How many reconnection attempts to make.

blocking

Boolean

If false, the reconnection strategy runs in a separate, non-blocking thread.

true

Reconnect Forever

Field Type Description Default Value Required

Frequency

Number

How often in milliseconds to reconnect.

blocking

Boolean

If false, the reconnection strategy runs in a separate, non-blocking thread.

true

Expiration Policy

Field Type Description Default Value Required

Max Idle Time

Number

A scalar time value for the maximum amount of time a dynamic configuration instance should be allowed to be idle before it’s considered eligible for expiration.

Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A time unit that qualifies the maxIdleTime attribute

Subscribe Channel Attributes

Field Type Description Default Value Required

Channel

String

Repeatable In Memory Stream

Field Type Description Default Value Required

Initial Buffer Size

Number

The amount of memory that will be allocated to consume the stream and provide random access to it. If the stream contains more data than can be fit into this buffer, then the buffer expands according to the bufferSizeIncrement attribute, with an upper limit of maxInMemorySize.

Buffer Size Increment

Number

This is by how much the buffer size will be expanded if it exceeds its initial size. Setting a value of zero or lower means that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer gets full.

Max Buffer Size

Number

The maximum amount of memory to use. If more memory is used, a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised. A value lower than or equal to zero means no limit.

Buffer Unit

Enumeration, one of:

  • BYTE

  • KB

  • MB

  • GB

The unit in which all these attributes are expressed

Repeatable File Store Stream

Field Type Description Default Value Required

Max In Memory Size

Number

Defines the maximum memory that the stream should use to keep data in memory. If more than that is consumed then it will start to buffer the content on disk.

Buffer Unit

Enumeration, one of:

  • BYTE

  • KB

  • MB

  • GB

The unit in which maxInMemorySize is expressed

Redelivery Policy

Field Type Description Default Value Required

Max Redelivery Count

Number

The maximum number of times a message can be redelivered and processed unsuccessfully before triggering process-failed-message

Use Secure Hash

Boolean

Whether to use a secure hash algorithm to identify a redelivered message.

Message Digest Algorithm

String

The secure hashing algorithm to use. If not set, the default is SHA-256.

Id Expression

String

Defines one or more expressions to use to determine when a message has been redelivered. This property may only be set if useSecureHash is false.

Object Store

Object Store

The object store where the redelivery counter for each message is going to be stored.

View on GitHub