1 write to _backend
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
79_backend = Backend switch
10 references to _backend
Microsoft.Extensions.Caching.MicroBenchmarks (10)
DistributedCacheBenchmarks.cs (10)
85_backend.Get(new Guid().ToString()); // just to touch it first 112_backend.Set(key, value, options); 122total += _backend.Get(RandomKey())?.Length ?? 0; 130Func<Task<byte[]?>> callback = () => _backend.GetAsync(RandomKey()); 150total += (await _backend.GetAsync(RandomKey()))?.Length ?? 0; 158Func<Task<byte[]?>> callback = () => _backend.GetAsync(RandomKey()); 177total += _backend.Get(FixedKey())?.Length ?? 0; 185Func<Task<byte[]?>> callback = () => _backend.GetAsync(FixedKey()); 204total += (await _backend.GetAsync(FixedKey()))?.Length ?? 0; 212Func<Task<byte[]?>> callback = () => _backend.GetAsync(FixedKey());