开发者

In Redis, how do I get the expiration date of a key?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜