EXPIRE key seconds
设置key的生存时间还剩多少秒
EXPIREAT key timestamp
设置key生存到什么时候,接受的参数是时间戳
redis命令参考:http://doc.redisfans.com/
EXPIRE key seconds
设置key的生存时间还剩多少秒
EXPIREAT key timestamp
设置key生存到什么时候,接受的参数是时间戳
redis命令参考:http://doc.redisfans.com/