19 instantiations of MemoryCacheEntryOptions
CookieSessionSample (1)
MemoryCacheTicketStore.cs (1)
30var options = new MemoryCacheEntryOptions();
HtmlGenerationWebSite (1)
ProductsService.cs (1)
44new MemoryCacheEntryOptions().AddExpirationToken(changeToken));
Microsoft.AspNetCore.Authentication.Certificate (1)
CertificateValidationCache.cs (1)
59_cache.Set(ComputeKey(certificate), result.Clone(), new MemoryCacheEntryOptions()
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\LdapAdapter.cs (1)
90new MemoryCacheEntryOptions()
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitRegistry.cs (1)
146var entryOptions = new MemoryCacheEntryOptions
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\CircuitRegistryTest.cs (1)
159registry.DisconnectedCircuits.Set(circuitHost.CircuitId.Secret, circuitHost, new MemoryCacheEntryOptions { Size = 1 });
Microsoft.AspNetCore.HeaderParsing (1)
HeaderKey.cs (1)
63private static readonly MemoryCacheEntryOptions _cacheEntryOptions = new()
Microsoft.AspNetCore.Mvc.Razor (3)
Infrastructure\DefaultFileVersionProvider.cs (1)
59var cacheEntryOptions = new MemoryCacheEntryOptions();
RazorViewEngine.cs (2)
194var cacheEntryOptions = new MemoryCacheEntryOptions(); 380var cacheEntryOptions = new MemoryCacheEntryOptions();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
136cacheEntryOptions = new MemoryCacheEntryOptions();
Microsoft.AspNetCore.Mvc.TagHelpers (2)
CacheTagHelper.cs (1)
172var options = new MemoryCacheEntryOptions();
GlobbingUrlBuilder.cs (1)
119var options = new MemoryCacheEntryOptions();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
CacheTagHelperTest.cs (1)
490var cacheEntryOptions = new MemoryCacheEntryOptions()
DefaultFileVersionProviderTest.cs (1)
236var cacheEntryOptions = new MemoryCacheEntryOptions();
Microsoft.AspNetCore.OutputCaching (1)
Memory\MemoryOutputCacheStore.cs (1)
117var options = new MemoryCacheEntryOptions
Microsoft.AspNetCore.ResponseCaching (2)
MemoryResponseCache.cs (2)
50new MemoryCacheEntryOptions 61new MemoryCacheEntryOptions
Microsoft.Extensions.Caching.Memory (1)
MemoryDistributedCache.cs (1)
78var memoryCacheEntryOptions = new MemoryCacheEntryOptions();
59 references to MemoryCacheEntryOptions
CookieSessionSample (1)
MemoryCacheTicketStore.cs (1)
30var options = new MemoryCacheEntryOptions();
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitRegistry.cs (1)
146var entryOptions = new MemoryCacheEntryOptions
Microsoft.AspNetCore.HeaderParsing (1)
HeaderKey.cs (1)
63private static readonly MemoryCacheEntryOptions _cacheEntryOptions = new()
Microsoft.AspNetCore.Mvc.Razor (3)
Infrastructure\DefaultFileVersionProvider.cs (1)
59var cacheEntryOptions = new MemoryCacheEntryOptions();
RazorViewEngine.cs (2)
194var cacheEntryOptions = new MemoryCacheEntryOptions(); 380var cacheEntryOptions = new MemoryCacheEntryOptions();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
111MemoryCacheEntryOptions cacheEntryOptions;
Microsoft.AspNetCore.Mvc.TagHelpers (4)
CacheTagHelper.cs (3)
94var options = GetMemoryCacheEntryOptions(); 169internal MemoryCacheEntryOptions GetMemoryCacheEntryOptions() 172var options = new MemoryCacheEntryOptions();
GlobbingUrlBuilder.cs (1)
119var options = new MemoryCacheEntryOptions();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (7)
CacheTagHelperTest.cs (6)
202var cacheEntryOptions = cacheTagHelper.GetMemoryCacheEntryOptions(); 262var cacheEntryOptions = cacheTagHelper.GetMemoryCacheEntryOptions(); 280var cacheEntryOptions = cacheTagHelper.GetMemoryCacheEntryOptions(); 298var cacheEntryOptions = cacheTagHelper.GetMemoryCacheEntryOptions(); 316var cacheEntryOptions = cacheTagHelper.GetMemoryCacheEntryOptions(); 490var cacheEntryOptions = new MemoryCacheEntryOptions()
DefaultFileVersionProviderTest.cs (1)
236var cacheEntryOptions = new MemoryCacheEntryOptions();
Microsoft.AspNetCore.OutputCaching (1)
Memory\MemoryOutputCacheStore.cs (1)
117var options = new MemoryCacheEntryOptions
Microsoft.Extensions.Caching.Abstractions (39)
CacheEntryExtensions.cs (2)
167/// Applies the values of an existing <see cref="MemoryCacheEntryOptions"/> to the entry. 172public static ICacheEntry SetOptions(this ICacheEntry entry, MemoryCacheEntryOptions options)
MemoryCacheEntryExtensions.cs (32)
10/// Provide extensions methods for <see cref="MemoryCacheEntryOptions"/> operations. 19/// <returns>The <see cref="MemoryCacheEntryOptions"/> so that additional calls can be chained.</returns> 20public static MemoryCacheEntryOptions SetPriority( 21this MemoryCacheEntryOptions options, 32/// <param name="size">The size to set on the <see cref="MemoryCacheEntryOptions"/>.</param> 33/// <returns>The <see cref="MemoryCacheEntryOptions"/> so that additional calls can be chained.</returns> 34public static MemoryCacheEntryOptions SetSize( 35this MemoryCacheEntryOptions options, 50/// <param name="options">The <see cref="MemoryCacheEntryOptions"/>.</param> 52/// <returns>The <see cref="MemoryCacheEntryOptions"/> so that additional calls can be chained.</returns> 53public static MemoryCacheEntryOptions AddExpirationToken( 54this MemoryCacheEntryOptions options, 66/// <param name="options">The <see cref="MemoryCacheEntryOptions"/>.</param> 68/// <returns>The <see cref="MemoryCacheEntryOptions"/> so that additional calls can be chained.</returns> 69public static MemoryCacheEntryOptions SetAbsoluteExpiration( 70this MemoryCacheEntryOptions options, 80/// <param name="options">The <see cref="MemoryCacheEntryOptions"/>.</param> 82/// <returns>The <see cref="MemoryCacheEntryOptions"/> so that additional calls can be chained.</returns> 83public static MemoryCacheEntryOptions SetAbsoluteExpiration( 84this MemoryCacheEntryOptions options, 95/// <param name="options">The <see cref="MemoryCacheEntryOptions"/>.</param> 97/// <returns>The <see cref="MemoryCacheEntryOptions"/> so that additional calls can be chained.</returns> 98public static MemoryCacheEntryOptions SetSlidingExpiration( 99this MemoryCacheEntryOptions options, 109/// <param name="options">The <see cref="MemoryCacheEntryOptions"/>.</param> 111/// <returns>The <see cref="MemoryCacheEntryOptions"/> so that additional calls can be chained.</returns> 112public static MemoryCacheEntryOptions RegisterPostEvictionCallback( 113this MemoryCacheEntryOptions options, 124/// <param name="options">The <see cref="MemoryCacheEntryOptions"/>.</param> 127/// <returns>The <see cref="MemoryCacheEntryOptions"/> so that additional calls can be chained.</returns> 128public static MemoryCacheEntryOptions RegisterPostEvictionCallback( 129this MemoryCacheEntryOptions options,
MemoryCacheExtensions.cs (5)
139/// Sets a cache entry with the given key and value and apply the values of an existing <see cref="MemoryCacheEntryOptions"/> to the created entry. 145/// <param name="options">The existing <see cref="MemoryCacheEntryOptions"/> instance to apply to the new entry.</param> 147public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, MemoryCacheEntryOptions? options) 182public static TItem? GetOrCreate<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, TItem> factory, MemoryCacheEntryOptions? createOptions) 222public static async Task<TItem?> GetOrCreateAsync<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, Task<TItem>> factory, MemoryCacheEntryOptions? createOptions)
Microsoft.Extensions.Caching.Memory (1)
MemoryDistributedCache.cs (1)
78var memoryCacheEntryOptions = new MemoryCacheEntryOptions();