Save ttl in cache