3 instantiations of CapturingCache
Microsoft.Extensions.Caching.Hybrid.Tests (3)
FactoryOptionsTests.cs (3)
33
var captured = new
CapturingCache
(new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions())));
138
var captured = new
CapturingCache
(new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions())));
276
var capturingA = new
CapturingCache
(sharedL2);
8 references to CapturingCache
Microsoft.Extensions.Caching.Hybrid.Tests (8)
FactoryOptionsTests.cs (8)
31
private static ServiceProvider BuildCacheWithL2(ITestOutputHelper log, out DefaultHybridCache cache, out
CapturingCache
localCache)
33
var
captured = new CapturingCache(new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions())));
38
private static async Task WaitForBackgroundL2WriteAsync(
CapturingCache
cache, string key)
56
using var provider = BuildCacheWithL2(log, out var cache, out
var
localCache);
80
using var provider = BuildCacheWithL2(log, out var cache, out
var
localCache);
138
var
captured = new CapturingCache(new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions())));
238
using var provider = BuildCacheWithL2(log, out var cache, out
var
localCache);
276
var
capturingA = new CapturingCache(sharedL2);