yaml
type: "io.kestra.plugin.redis.string.set"
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
Default STRING
Possible Values
STRINGJSON
Default false
Default { "mustNotExist": "false", "mustExist": "false", "keepTtl": "false" }
Format date-time
Format duration
Default false
Default false
Default false