maxmemory-policy noeviction
#expire keys after 30 days
default-ttl 2592000
#change the current ttl of existing keys to 30 days
#给所有键设置30天的过期时间
bcakground-rewrite-ttl 2592000
# 该键的TTL为 1543930674 - 上一次存储TTL的ACK
SET mykey "value" EX 1543930674
# 设置过期时间为120秒
SET mykey "value"
EXPIRE mykey 120
SET mykey "value"
EXPIREAT mykey 1541101620