mneme.ks:ttl

mneme

ks:ttl(key) -> seconds

Get remaining TTL for a key

Returns the remaining time-to-live in seconds, or nil if the key has no TTL set, does not exist, or has already expired.