2 implementations of ICacheEntry
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
Microsoft.Extensions.Caching.Memory (1)
75 references to ICacheEntry
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (9)
Microsoft.Extensions.Caching.Abstractions (59)
CacheEntryExtensions.cs (42)
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(
95this ICacheEntry entry,
106/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
109/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
110public static ICacheEntry RegisterPostEvictionCallback(
111this ICacheEntry entry,
120private static ICacheEntry RegisterPostEvictionCallbackNoValidation(
121this ICacheEntry entry,
136/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
138/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
139public static ICacheEntry SetValue(
140this ICacheEntry entry,
150/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
152/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
153public static ICacheEntry SetSize(
154this ICacheEntry entry,
169/// <param name="entry">The <see cref="ICacheEntry"/>.</param>
171/// <returns>The <see cref="ICacheEntry"/> for chaining.</returns>
172public static ICacheEntry SetOptions(this ICacheEntry entry, MemoryCacheEntryOptions options)
MemoryCacheExtensions.cs (13)
78using ICacheEntry entry = cache.CreateEntry(key);
95using ICacheEntry entry = cache.CreateEntry(key);
113using ICacheEntry entry = cache.CreateEntry(key);
131using ICacheEntry entry = cache.CreateEntry(key);
149using ICacheEntry entry = cache.CreateEntry(key);
168public static TItem? GetOrCreate<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, TItem> factory)
180/// <param name="createOptions">The options to be applied to the <see cref="ICacheEntry"/> if the key does not exist in the cache.</param>
182public static TItem? GetOrCreate<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, TItem> factory, MemoryCacheEntryOptions? createOptions)
186using ICacheEntry entry = cache.CreateEntry(key);
208public static Task<TItem?> GetOrCreateAsync<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, Task<TItem>> factory)
220/// <param name="createOptions">The options to be applied to the <see cref="ICacheEntry"/> if the key does not exist in the cache.</param>
222public static async Task<TItem?> GetOrCreateAsync<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, Task<TItem>> factory, MemoryCacheEntryOptions? createOptions)
226using ICacheEntry entry = cache.CreateEntry(key);
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Caching.Memory (4)