1 type derived from MemoryCacheOptions
Microsoft.Extensions.Caching.Memory (1)
MemoryDistributedCacheOptions.cs (1)
9public class MemoryDistributedCacheOptions : MemoryCacheOptions
11 instantiations of MemoryCacheOptions
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitRegistry.cs (1)
59DisconnectedCircuits = new MemoryCache(new MemoryCacheOptions
Circuits\DefaultInMemoryCircuitPersistenceProvider.cs (1)
30_persistedCircuits = new MemoryCache(new MemoryCacheOptions
Microsoft.AspNetCore.HeaderParsing (1)
HeaderKey.cs (1)
39var o = new MemoryCacheOptions
Microsoft.AspNetCore.Mvc.Razor (3)
Infrastructure\TagHelperMemoryCacheProvider.cs (1)
18public IMemoryCache Cache { get; internal set; } = new MemoryCache(new MemoryCacheOptions
RazorViewEngine.cs (2)
78ViewLookupCache = new MemoryCache(new MemoryCacheOptions()); 83ViewLookupCache = new MemoryCache(new MemoryCacheOptions());
Microsoft.AspNetCore.Mvc.TagHelpers (1)
CacheTagHelperMemoryCacheFactory.cs (1)
21Cache = new MemoryCache(new MemoryCacheOptions
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheServiceCollectionExtensions.cs (1)
35return new MemoryOutputCacheStore(new MemoryCache(new MemoryCacheOptions
Microsoft.AspNetCore.ResponseCaching (1)
ResponseCachingMiddleware.cs (1)
49new MemoryResponseCache(new MemoryCache(new MemoryCacheOptions
Microsoft.Extensions.Caching.Hybrid.Tests (2)
ExpirationTests.cs (1)
22using var l1 = new MemoryCache(new MemoryCacheOptions { Clock = clock });
LocalInvalidationTests.cs (1)
54using IMemoryCache l1 = new MemoryCache(new MemoryCacheOptions());
14 references to MemoryCacheOptions
Microsoft.AspNetCore.HeaderParsing (1)
HeaderKey.cs (1)
39var o = new MemoryCacheOptions
Microsoft.Extensions.Caching.Hybrid.Tests (2)
ServiceConstructionTests.cs (2)
624public CustomMemoryCache(IOptions<MemoryCacheOptions> options) 629public CustomMemoryCache(IOptions<MemoryCacheOptions> options, ILoggerFactory loggerFactory)
Microsoft.Extensions.Caching.Memory (11)
MemoryCache.cs (6)
29private readonly MemoryCacheOptions _options; 44public MemoryCache(IOptions<MemoryCacheOptions> optionsAccessor) 52public MemoryCache(IOptions<MemoryCacheOptions> optionsAccessor, ILoggerFactory? loggerFactory) 61public MemoryCache(IOptions<MemoryCacheOptions> optionsAccessor, ILoggerFactory? loggerFactory, IMeterFactory? meterFactory) 378/// <returns>Returns <see langword="null"/> if statistics are not being tracked because <see cref="MemoryCacheOptions.TrackStatistics" /> is <see langword="false"/>.</returns> 835internal bool RemoveEntry(CacheEntry entry, MemoryCacheOptions options)
MemoryCacheOptions.cs (3)
14public class MemoryCacheOptions : IOptions<MemoryCacheOptions> 106MemoryCacheOptions IOptions<MemoryCacheOptions>.Value
MemoryCacheServiceCollectionExtensions.cs (2)
38/// The <see cref="Action{MemoryCacheOptions}"/> to configure the provided <see cref="MemoryCacheOptions"/>. 41public static IServiceCollection AddMemoryCache(this IServiceCollection services, Action<MemoryCacheOptions> setupAction)