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);
122
total +=
_backend
.Get(RandomKey())?.Length ?? 0;
130
Func<Task<byte[]?>> callback = () =>
_backend
.GetAsync(RandomKey());
150
total += (await
_backend
.GetAsync(RandomKey()))?.Length ?? 0;
158
Func<Task<byte[]?>> callback = () =>
_backend
.GetAsync(RandomKey());
177
total +=
_backend
.Get(FixedKey())?.Length ?? 0;
185
Func<Task<byte[]?>> callback = () =>
_backend
.GetAsync(FixedKey());
204
total += (await
_backend
.GetAsync(FixedKey()))?.Length ?? 0;
212
Func<Task<byte[]?>> callback = () =>
_backend
.GetAsync(FixedKey());