TTL key
See the documentation of the TTL command.
There is also a PTTL
command since Redis 2.6 that returns the amount of time in milliseconds instead of seconds.
TTL key
See the documentation of the TTL command.
There is also a PTTL
command since Redis 2.6 that returns the amount of time in milliseconds instead of seconds.