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
-2 if 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.