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

Set the string value of a key.

Examples

yaml
id: redis_set
namespace: company.team

tasks:
  - id: set
    type: io.kestra.plugin.redis.string.Set
    url: redis://:redis@localhost:6379/0
    key: mykey
    value: myvalue
    serdeType: STRING

Properties

key

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

The redis key you want to set.

serdeType

  • Type: object
  • Dynamic:
  • Required: ✔️

url

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

The connection string.

value

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

The value you want to set.

get

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

options

Options available when setting a key in Redis.

Outputs

oldValue

  • Type: string
  • Required:

Definitions

io.kestra.plugin.redis.string.Set-Options

  • expirationDate
    • Type: string
    • Dynamic:
    • Required:
    • Format: date-time
  • expirationDuration
    • Type: string
    • Dynamic:
    • Required:
    • Format: duration
  • keepTtl
    • Type: boolean
    • Dynamic:
    • Required:
  • mustExist
    • Type: boolean
    • Dynamic:
    • Required:
  • mustNotExist
    • Type: boolean
    • Dynamic:
    • Required: