Description
Returns the remaining time to live of a key that has a timeout. This introspection capability allows a Redis client to check how many seconds a given key will continue to be part of the dataset.Method Signature
Parameters
The key to get the time to live for
Return Value
The time to live in seconds, or:
-2if the key does not exist-1if the key exists but has no associated expire