Fetch the ttl from an Redis item by key.
yaml
type: "io.kestra.plugin.redis.string.Ttl"
Examples
yaml
id: redis_increment
namespace: company.team
inputs:
- id: key_name
type: STRING
displayName: Key name to increment
tasks:
- id: getTtl
type: io.kestra.plugin.redis.string.Ttl
url: redis://:redis@localhost:6379/0
key: "{{ inputs.key_name }}"
Properties
key *Requiredstring
The redis key you want to increment
url *Requiredstring
The connection string.
amount numberstring
The amount to increment, default is 1
Outputs
key string
The fetched key.
ttl integer
The ttl value.