Set
yaml
type: "io.kestra.plugin.redis.string.set"
Examples
yaml
id: redis_set
namespace: company.team
inputs:
- id: key_name
type: STRING
displayName: Key Name
- id: key_value
type: STRING
displayName: Key Value
tasks:
- id: set
type: io.kestra.plugin.redis.string.Set
url: redis://:redis@localhost:6379/0
key: "{{ inputs.key_name }}"
value: "{{ inputs.key_value }}"
serdeType: STRING
yaml
id: redis_set_json
namespace: company.team
tasks:
- id: set
type: io.kestra.plugin.redis.string.Set
url: "{{ secret('REDIS_URI')}}"
key: "key_json_{{ execution.id }}"
value: |
{{ {
"flow": flow.id,
"namespace": flow.namespace
} | toJson }}
serdeType: JSON
- id: get
type: io.kestra.plugin.redis.string.Get
url: "{{ secret('REDIS_URI')}}"
serdeType: JSON
key: "key_json_{{ execution.id }}"
Properties
key *Requiredstring
serdeType *Requiredstring
Default
STRING
Possible Values
STRING
JSON
url *Requiredstring
value *Requiredobject
get booleanstring
Default
false
options Non-dynamicSet-Options
Default
{
"mustNotExist": "false",
"mustExist": "false",
"keepTtl": "false"
}
Outputs
oldValue string
Definitions
io.kestra.plugin.redis.string.Set-Options
expirationDate string
Format
date-time
expirationDuration string
Format
duration
keepTtl booleanstring
Default
false
mustExist booleanstring
Default
false
mustNotExist booleanstring
Default
false