Command
TTL key
Explanation
Returns the remaining time to live of a key that has a timeout.
Examples
Check expiration time
TTL session:1234
TTL key
Returns the remaining time to live of a key that has a timeout.
Check expiration time
TTL session:1234