update to support ttl and lastupdate key