What's开发者_StackOverflow社区 the command I use to see how many seconds are remaining?
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.
精彩评论