Skip to content

RedisPub Action ​

The RedisPub action publishes output messages to a Redis pub/sub channel.

Properties ​

Property nameOptionalDescription
addressfalseThe network address of Redis, such as 127.0.0.1:6379.
usernametrueThe Redis login username for authentication.
passwordtrueThe Redis login password for authentication.
dbfalseThe Redis database number (0 to 15), such as 0.
channelfalseThe Redis pub/sub channel name to which messages are published.
compressiontrueCompresses the payload with the specified algorithm: zlib, gzip, flate, or zstd.

Other common sink properties are supported. Refer to sink common properties for more information.

Sample Usage ​

The following configuration publishes compressed messages to a local Redis pub/sub channel:

json
{
  "redisPub": {
    "address": "127.0.0.1:6379",
    "username": "default",
    "password": "123456",
    "db": 0,
    "channel": "exampleChannel",
    "compression": "zlib"
  }
}

This configuration sends output messages to channel exampleChannel in Redis database 0 and compresses the payload with zlib.

Released under the Apache-2.0 / MIT License.