开发者

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

开发者 https://www.devze.com 2023-03-24 22:19 出处:网络
What\'s开发者_StackOverflow社区 the command I use to see how many seconds are remaining?TTL key See the documentation of the TTL command.

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

精彩评论

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

关注公众号