Skip to main content
Version: 3.5.0

Output: redis

Write to Redis in-memory key-value store

Field Summary

Field NameTypeDescriptionDefault
uriuriRedis address to write toredis://localhost/
input-fieldfieldAn event field from where data is to be read-
setRedisOutOpSet a value on a redis server-

Fields

uri

Type: uri

Default: redis://localhost/

Redis address to write to

Example

Pipe Language Snippet:

redis:
set:
list: mylist
uri: amqp://localhost/

input-field

Type: field

An event field from where data is to be read

Otherwise the whole event is written

Example

Pipe Language Snippet:

redis:
input-field: some-field
set:
list: mylist

set

Type: RedisOutOp

Set a value on a redis server

Field NameTypeDescriptionDefault
publishstringWrite to a Redis channel, which allows fan-out-
liststringWrite to Redis list-
hash-valuearray of two stringsWrite event to a Redis hash-
hashstringWrite to a Redis hash, without overwriting same-named field, just merging-

  publish

Type: string

Write to a Redis channel, which allows fan-out

Example

Pipe Language Snippet:

redis:
set:
publish: some-channel

  list

Type: string

Write to Redis list

Example

Pipe Language Snippet:

redis:
set:
list: some-field

  hash-value

Type: array of two strings

Write event to a Redis hash

The field can contain event field expansions

Example

Pipe Language Snippet:

redis:
set:
hash-value: [key, field]

  hash

Type: string

Write to a Redis hash, without overwriting same-named field, just merging

Example

Pipe Language Snippet:

redis:
set:
hash: some-hash