public async Task <string> OrderWaitRedis() { Func <Task <Dictionary <string, object> > > queryGetOrderInfoAsync = () => GetData.QueryGetOrderInfoAsync(); Stopwatch stopWatch = Stopwatch.StartNew(); Dictionary <string, object> order = await _redisCacheService.GetOrCreateOrderWait( queryGetOrderInfoAsync, CacheKeys.OrderInfoWaitRedis); stopWatch.Stop(); TimeSpan ts1 = stopWatch.Elapsed; string ellapsedTime = TimeUtils.showEllapsedTime(ts1); return(ellapsedTime); }