11 instantiations of MemoryCacheEntryOptions
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitRegistry.cs (1)
149var entryOptions = new MemoryCacheEntryOptions
Circuits\DefaultInMemoryCircuitPersistenceProvider.cs (1)
59var options = 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.TagHelpers (2)
CacheTagHelper.cs (1)
172var options = new MemoryCacheEntryOptions();
GlobbingUrlBuilder.cs (1)
119var options = new MemoryCacheEntryOptions();
Microsoft.AspNetCore.OutputCaching (1)
Memory\MemoryOutputCacheStore.cs (1)
120var options = new MemoryCacheEntryOptions
Microsoft.AspNetCore.ResponseCaching (2)
MemoryResponseCache.cs (2)
50new MemoryCacheEntryOptions 61new MemoryCacheEntryOptions
50 references to MemoryCacheEntryOptions
Microsoft.AspNetCore.Components.Server (2)
Circuits\CircuitRegistry.cs (1)
149var entryOptions = new MemoryCacheEntryOptions
Circuits\DefaultInMemoryCircuitPersistenceProvider.cs (1)
59var options = 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.TagHelpers (4)
CacheTagHelper.cs (3)
94var options = GetMemoryCacheEntryOptions(); 169internal MemoryCacheEntryOptions GetMemoryCacheEntryOptions() 172var options = new MemoryCacheEntryOptions();
GlobbingUrlBuilder.cs (1)
119var options = new MemoryCacheEntryOptions();
Microsoft.AspNetCore.OutputCaching (1)
Memory\MemoryOutputCacheStore.cs (1)
120var options = new MemoryCacheEntryOptions
Microsoft.Extensions.Caching.Abstractions (39)
CacheEntryExtensions.cs (2)
153/// Applies the values of an existing <see cref="MemoryCacheEntryOptions"/> to the entry. 158public 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)
141/// Sets a cache entry with the given key and value and apply the values of an existing <see cref="MemoryCacheEntryOptions"/> to the created entry. 147/// <param name="options">The existing <see cref="MemoryCacheEntryOptions"/> instance to apply to the new entry.</param> 149public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, MemoryCacheEntryOptions? options) 184public static TItem? GetOrCreate<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, TItem> factory, MemoryCacheEntryOptions? createOptions) 224public static async Task<TItem?> GetOrCreateAsync<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, Task<TItem>> factory, MemoryCacheEntryOptions? createOptions)