1:删除键
del name
2:选择数据库
select 1
3:设置键的过期时间(单位秒)
expire user 900
4:查看还有多少秒过期
ttl user
!!!
Redis5 常用命令
原文:https://www.cnblogs.com/wlphp/p/11632426.html