Reputation: 271724
What's the command I use to see how many seconds are remaining?
Upvotes: 52
Views: 31998
Reputation: 24078
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.
Upvotes: 80