Redis KeyExpire的使用

Set a timeout on key. After the timeout has expired, the key will automatically
be deleted. A key with an associated timeout is said to be volatile in Redis
terminology.

  

设置键超时。超时过期后,密钥将自动执行。
被删除。具有相关超时的键在Redis中是不稳定的
术语。

 

 

在調用KeyExpire前需要先生成一個key的鍵,不然返回為false

posted @ 2018-06-09 10:50  AnAng  阅读(523)  评论(0编辑  收藏  举报