Set the string value of a key.
yaml
type: "io.kestra.plugin.redis.string.Set"
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
Dynamic YES
The redis key you want to set.
Dynamic YES
Default STRING
Possible Values
STRINGJSON
Format of the data contained in Redis.
Dynamic YES
The connection string.
Dynamic YES
The value you want to set.
Must be a string for serdeType: STRING
or can be an object or a json string serdeType: JSON
Dynamic YES
Default false
Old value
The old value if you replaced an existing key Required Get to true
Dynamic NO
Format date-time
Set the expiration date.
Dynamic NO
Format duration
Set the expiration duration.
Dynamic NO
Retain the time to live associated with the key.
Dynamic NO
Only set the key if it already exist.
Dynamic NO
Only set the key if it does not already exist.