public IActionResult Detail(int Id) { string cacheKey = "Person" + Id; var redisdata = _redisService.GetById(cacheKey); return(View(redisdata)); }
public Product GetProduct(string Id) { string cacheKey = "Product" + Id; return(_redisService.GetById(cacheKey)); }