public Task <LatencyResponse> PutToCache(LatencyRequest key) { var sw = new Stopwatch(); sw.Start(); dataCache.Value.Add(key.Key, "Whatever"); sw.Stop(); return(Task.FromResult(result: new LatencyResponse() { Latency = sw.ElapsedMilliseconds })); }
public Task<LatencyResponse> PutToCache(LatencyRequest key) { var sw = new Stopwatch(); sw.Start(); dataCache.Value.Add(key.Key, "Whatever"); sw.Stop(); return Task.FromResult(result: new LatencyResponse() { Latency = sw.ElapsedMilliseconds }); }