Set
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
STRINGPossible Values
STRINGJSONurl *Requiredstring
value *Requiredobject
get booleanstring
Default
falseoptions Non-dynamic
Default
{
"mustNotExist": "false",
"mustExist": "false",
"keepTtl": "false"
} Definitions
io.kestra.plugin.redis.string.Set-Options
expirationDatestring
Format
date-timeexpirationDurationstring
Format
durationkeepTtlbooleanstring
Default
falsemustExistbooleanstring
Default
falsemustNotExistbooleanstring
Default
false