pass key and value to cache.set()