Create method to generate cacheKey