public async Task <ActionResult <IEnumerable <ProductSchema> > > GetProductByName(string key) { var response = await _redisService.GetAndSetAsync(key, () => _productElasticService.GetProductsByName(key)); if (response != null && response.Any()) { return(Ok(response)); } else { return(NotFound("Could not be found")); } }