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

原文地址:https://www.cnblogs.com/AnAng/p/9158808.html