2 implementations of ICacheEntry
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
Microsoft.Extensions.Caching.Memory (1)
74 references to ICacheEntry
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (9)
Microsoft.Extensions.Caching.Abstractions (57)
CacheEntryExtensions.cs (40)
11/// Provides extensions methods for <see cref="ICacheEntry"/> operations.
20/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
21public static ICacheEntry SetPriority(
22this ICacheEntry entry,
32/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
34/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
35public static ICacheEntry AddExpirationToken(
36this ICacheEntry entry,
48/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
50/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
51public static ICacheEntry SetAbsoluteExpiration(
52this ICacheEntry entry,
62/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
64/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
65public static ICacheEntry SetAbsoluteExpiration(
66this ICacheEntry entry,
77/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
79/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
80public static ICacheEntry SetSlidingExpiration(
81this ICacheEntry entry,
91/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
93/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
94public static ICacheEntry RegisterPostEvictionCallback(this ICacheEntry entry, PostEvictionDelegate callback)
100/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
103/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
104public static ICacheEntry RegisterPostEvictionCallback(
105this ICacheEntry entry,
122/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
124/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
125public static ICacheEntry SetValue(
126this ICacheEntry entry,
136/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
138/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
139public static ICacheEntry SetSize(
140this ICacheEntry entry,
155/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
157/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
158public static ICacheEntry SetOptions(this ICacheEntry entry, MemoryCacheEntryOptions options)
MemoryCacheExtensions.cs (13)
79ICacheEntry entry = cache.CreateEntry(key);
97using ICacheEntry entry = cache.CreateEntry(key);
115using ICacheEntry entry = cache.CreateEntry(key);
133using ICacheEntry entry = cache.CreateEntry(key);
151using ICacheEntry entry = cache.CreateEntry(key);
170public static TItem? GetOrCreate<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, TItem> factory)
182/// <param name="createOptions">The options to be applied to the <see cref="ICacheEntry"/> if the key does not exist in the cache.</param>
184public static TItem? GetOrCreate<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, TItem> factory, MemoryCacheEntryOptions? createOptions)
188using ICacheEntry entry = cache.CreateEntry(key);
210public static Task<TItem?> GetOrCreateAsync<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, Task<TItem>> factory)
222/// <param name="createOptions">The options to be applied to the <see cref="ICacheEntry"/> if the key does not exist in the cache.</param>
224public static async Task<TItem?> GetOrCreateAsync<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, Task<TItem>> factory, MemoryCacheEntryOptions? createOptions)
228using ICacheEntry entry = cache.CreateEntry(key);
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Caching.Memory (5)