redisTTL: Return the time to live for a key set to expire.
Description
She the time left to live in seconds (redisTTL) or
milliseconds (redisPTTL) for the specified key.
Usage
redisTTL(key)
redisPTTL(key)
Arguments
key
The key to look up.
Value
Integer time left to live or -1 if the key is not set to expire or
not found.
Details
Redis keys may be set to exipre at or after a given time with
the redisExpire and redisExpireAt functions. This function
shows the time left before exipraton in seconds for such a key.