
Redis Ttl
CertifiedRead TTL for a Redis key
Redis Ttl
Certified
Read TTL for a Redis key
Runs TTL on the rendered key and returns remaining seconds (-1 for no expiry, -2 when missing).
yaml
type: io.kestra.plugin.redis.string.TtlExamples
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
Redis key to check
Rendered before calling TTL.
url *Requiredstring
Redis connection string
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
Outputs
key string
Checked key
ttl integer
TTL value
Remaining time in seconds; -1 means no expiration, -2 means key missing.