Redis Ttl

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.Ttl
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

Redis key to check

Rendered before calling TTL.

Redis connection string

Reference (ref) of the pluginDefaults to apply to this task.

Checked key

TTL value

Remaining time in seconds; -1 means no expiration, -2 means key missing.