public void BenchmarkCreate() { var _object = RandomDummyCacheObject.GenerateCacheObject(); var result = _cache.StoreAsync(_correlationId, _object.Id, _object, 600000).Result; _ids.Add(result.Id); }
private void InitBenchmark() { _cache.Configure(CacheConfig); _cache.OpenAsync(null).Wait(); for (int i = 0; i < 300000; i++) { listCacheObjects.Add(RandomDummyCacheObject.GenerateCacheObject()); _ids.Add(listCacheObjects[i].Id); _cache.StoreAsync(_correlationId, listCacheObjects[i].Id, listCacheObjects[i], 600000).Wait(); } }