Set the string value of a key.
type: "io.kestra.plugin.redis.string.Set"
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
The redis key you want to set.
STRING
STRING
JSON
Format of the data contained in Redis.
The connection string.
The value you want to set.
Must be a string for serdeType: STRING
or can be an object or a json string serdeType: JSON
false
Define if you get the older value in response, does not work with Redis 5.X.
{}
Options available when setting a key in Redis.
See redis documentation.
Old value
The old value if you replaced an existing key Required Get to true
date-time
Set the expiration date.
duration
Set the expiration duration.
Retain the time to live associated with the key.
Only set the key if it already exist.
Only set the key if it does not already exist.