lock ttl

This block is part of the locking group and was last modified in core v12.0.7.

lock ttl v12.0.7

Returns the time to live for a given lock

In pins 1 + flow
  • flow
    flow
  • key required
    value

    the lock key to be checked

Out pins 1 + flow
  • flow
    flow
  • ttl
    number

    Returns the ttl in seconds. Returns -1 if the key exists but has no associated expire. Returns -2 if the key does not exist.

expiry
expire

A typical wiring for lock ttl: a function trigger starts the flow; value feeds the key pin; the flow out pin feeds debug.

Studio canvas example for the lock ttl block: typical wiring for lock ttl.

Version history

Introduced in v12.0.7.


Back to locking Return to the main group to view all sub-groups Back to locking Return to the group to view all blocks within this group