为key设置生存时间需要使用EXPIRE命令,语法格式:. EXPIRE key seconds. 示例- 设置rank的过期时间为30秒。 redis> EXPIRE rank 30 # 设置过期时间为30 秒 (integer) ...
確定! 回上一頁