2 types derived from MemoryDistributedCache
Microsoft.Extensions.Caching.Hybrid.Tests (2)
BufferReleaseTests.cs (1)
78private class TestCache : MemoryDistributedCache, IBufferDistributedCache
ServiceConstructionTests.cs (1)
220private class CustomMemoryDistributedCache : MemoryDistributedCache
2 instantiations of MemoryDistributedCache
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
DistributedCacheTagHelperTest.cs (1)
776return new DistributedCacheTagHelperStorage(new MemoryDistributedCache(options ?? Options.Create(new MemoryDistributedCacheOptions())));
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
1158_cache = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions()));
8 references to MemoryDistributedCache
Microsoft.AspNetCore.Session.Tests (1)
SessionTests.cs (1)
1147private readonly MemoryDistributedCache _cache;
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
71&& _backendCache.GetType() == typeof(MemoryDistributedCache)
Microsoft.Extensions.Caching.Hybrid.Tests (3)
L2Tests.cs (1)
38var localCache = new MemoryDistributedCache(localCacheOptions);
ServiceConstructionTests.cs (2)
158services.AddSingleton<IDistributedCache, MemoryDistributedCache>(); 192services.AddSingleton<IDistributedCache, MemoryDistributedCache>();
Microsoft.Extensions.Caching.Memory (3)
MemoryCacheServiceCollectionExtensions.cs (1)
71services.TryAdd(ServiceDescriptor.Singleton<IDistributedCache, MemoryDistributedCache>());
MemoryDistributedCache.cs (2)
22/// Creates a new <see cref="MemoryDistributedCache"/> instance. 29/// Creates a new <see cref="MemoryDistributedCache"/> instance.