Set Set

yaml
type: "io.kestra.plugin.redis.Set"

Set the string value of a key.

Examples

yaml
id: "set"
type: "io.kestra.plugin.redis.Set"
url: amqp://guest:guest@localhost:5672/my_vhost
key: mykey
value: myvalue
serdeType: STRING

Properties

key

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The redis key you want to set

url

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The connection string.

value

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

The value you want to set

get

  • Type: boolean
  • Dynamic:
  • Required:
  • Default: false

Define if you get the older value in response, does not work with Redis 5.X

options

  • Type: Options
  • Dynamic:
  • Required:

Options available when setting a key in Redis

See redis documentation

serdeType

  • Type: string
  • Dynamic:
  • Required:
  • Default: STRING
  • Possible Values:
    • STRING
    • JSON

Serializer / Deserializer use for the value

Outputs

oldValue

  • Type: string

Old value

The old value if you replaced an existing key Required Get to true

Definitions

Options

expirationDate

  • Type: string
  • Dynamic:
  • Required:

Set the expiration date.

expirationDuration

  • Type: string
  • Dynamic:
  • Required:
  • Format: duration

Set the expiration duration.

keepTtl

  • Type: boolean
  • Dynamic:
  • Required:

Retain the time to live associated with the key.

mustExist

  • Type: boolean
  • Dynamic:
  • Required:

Only set the key if it already exist.

mustNotExist

  • Type: boolean
  • Dynamic:
  • Required:

Only set the key if it does not already exist.