在经过指定的秒数或毫秒数之后,服务器就会自动删除生存时间为0的键。 !redis-cli set key value !redis-cli expire key 100 !redis-cli ttl key.
確定! 回上一頁