public IActionResult Index() { const string cacheKey = "Person*"; var redisdata = _redisService.GetAll(cacheKey); return(View(redisdata)); }
public async Task <List <StockResponseModel> > Handle(GetStocksQuery request, CancellationToken cancellationToken) { var responseModel = new List <StockResponseModel>(); var stockModel = _redisService.GetAll <StockModel>($"stock"); if (stockModel.Any()) { responseModel = _mapper.Map <List <StockResponseModel> >(stockModel.ToList()); } return(responseModel); }