10 references to Create
Microsoft.Extensions.Caching.Hybrid.Tests (10)
ExpirationTests.cs (1)
23
var l2 = new LoggingCache(log, new MemoryDistributedCache(Options.
Create
(new MemoryDistributedCacheOptions { Clock = clock })));
FactoryOptionsTests.cs (4)
33
var captured = new CapturingCache(new MemoryDistributedCache(Options.
Create
(new MemoryDistributedCacheOptions())));
138
var captured = new CapturingCache(new MemoryDistributedCache(Options.
Create
(new MemoryDistributedCacheOptions())));
163
var l2 = new LoggingCache(log, new MemoryDistributedCache(Options.
Create
(new MemoryDistributedCacheOptions { Clock = clock })));
271
var sharedL2 = new MemoryDistributedCache(Options.
Create
(new MemoryDistributedCacheOptions()));
LocalInvalidationTests.cs (1)
59
MemoryDistributedCache mdc = new(Options.
Create
(options));
PayloadTests.cs (4)
111
var backend = new MemoryDistributedCache(Options.
Create
(new MemoryDistributedCacheOptions()));
434
var localCache = new MemoryDistributedCache(Options.
Create
(new MemoryDistributedCacheOptions()));
461
var localCache = new MemoryDistributedCache(Options.
Create
(new MemoryDistributedCacheOptions()));
500
localCache = new MemoryDistributedCache(Options.
Create
(new MemoryDistributedCacheOptions()));