rewrite ttl, put expiration keys in memory