1 implementation of ICacheEntry
Microsoft.Extensions.Caching.Memory (1)
CacheEntry.cs (1)
15
internal sealed partial class CacheEntry :
ICacheEntry
65 references to ICacheEntry
Microsoft.AspNetCore.Mvc.TagHelpers (1)
CacheTagHelper.cs (1)
113
var
entry = MemoryCache.CreateEntry(cacheKey);
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>
21
public static
ICacheEntry
SetPriority(
22
this
ICacheEntry
entry,
32
/// <param name="entry">The <see cref="
ICacheEntry
"/>.</param>
34
/// <returns>The <see cref="
ICacheEntry
"/> for chaining.</returns>
35
public static
ICacheEntry
AddExpirationToken(
36
this
ICacheEntry
entry,
48
/// <param name="entry">The <see cref="
ICacheEntry
"/>.</param>
50
/// <returns>The <see cref="
ICacheEntry
"/> for chaining.</returns>
51
public static
ICacheEntry
SetAbsoluteExpiration(
52
this
ICacheEntry
entry,
62
/// <param name="entry">The <see cref="
ICacheEntry
"/>.</param>
64
/// <returns>The <see cref="
ICacheEntry
"/> for chaining.</returns>
65
public static
ICacheEntry
SetAbsoluteExpiration(
66
this
ICacheEntry
entry,
77
/// <param name="entry">The <see cref="
ICacheEntry
"/>.</param>
79
/// <returns>The <see cref="
ICacheEntry
"/> for chaining.</returns>
80
public static
ICacheEntry
SetSlidingExpiration(
81
this
ICacheEntry
entry,
91
/// <param name="entry">The <see cref="
ICacheEntry
"/>.</param>
93
/// <returns>The <see cref="
ICacheEntry
"/> for chaining.</returns>
94
public 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>
104
public static
ICacheEntry
RegisterPostEvictionCallback(
105
this
ICacheEntry
entry,
122
/// <param name="entry">The <see cref="
ICacheEntry
"/>.</param>
124
/// <returns>The <see cref="
ICacheEntry
"/> for chaining.</returns>
125
public static
ICacheEntry
SetValue(
126
this
ICacheEntry
entry,
136
/// <param name="entry">The <see cref="
ICacheEntry
"/>.</param>
138
/// <returns>The <see cref="
ICacheEntry
"/> for chaining.</returns>
139
public static
ICacheEntry
SetSize(
140
this
ICacheEntry
entry,
155
/// <param name="entry">The <see cref="
ICacheEntry
"/>.</param>
157
/// <returns>The <see cref="
ICacheEntry
"/> for chaining.</returns>
158
public static
ICacheEntry
SetOptions(this
ICacheEntry
entry, MemoryCacheEntryOptions options)
IMemoryCache.cs (2)
25
/// <returns>The newly created <see cref="
ICacheEntry
"/> instance.</returns>
26
ICacheEntry
CreateEntry(object key);
MemoryCacheExtensions.cs (13)
79
ICacheEntry
entry = cache.CreateEntry(key);
97
using
ICacheEntry
entry = cache.CreateEntry(key);
115
using
ICacheEntry
entry = cache.CreateEntry(key);
133
using
ICacheEntry
entry = cache.CreateEntry(key);
151
using
ICacheEntry
entry = cache.CreateEntry(key);
170
public 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>
184
public static TItem? GetOrCreate<TItem>(this IMemoryCache cache, object key, Func<
ICacheEntry
, TItem> factory, MemoryCacheEntryOptions? createOptions)
188
using
ICacheEntry
entry = cache.CreateEntry(key);
210
public 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>
224
public static async Task<TItem?> GetOrCreateAsync<TItem>(this IMemoryCache cache, object key, Func<
ICacheEntry
, Task<TItem>> factory, MemoryCacheEntryOptions? createOptions)
228
using
ICacheEntry
entry = cache.CreateEntry(key);
MemoryCacheStatistics.cs (2)
19
/// Gets the number of <see cref="
ICacheEntry
" /> instances currently in the memory cache.
24
/// Gets an estimated sum of all the <see cref="
ICacheEntry
.Size" /> values currently in the memory cache.
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.L2.cs (1)
189
ICacheEntry
cacheEntry = _localCache.CreateEntry(key);
Microsoft.Extensions.Caching.Hybrid.Tests (1)
StampedeTests.cs (1)
39
ICacheEntry
IMemoryCache.CreateEntry(object key) => throw new NotSupportedException("Intentionally not provided");
Microsoft.Extensions.Caching.Memory (5)
CacheEntry.cs (3)
66
DateTimeOffset?
ICacheEntry
.AbsoluteExpiration
94
TimeSpan?
ICacheEntry
.AbsoluteExpirationRelativeToNow
155
long?
ICacheEntry
.Size
MemoryCache.cs (1)
115
public
ICacheEntry
CreateEntry(object key)
MemoryDistributedCache.cs (1)
79
using
ICacheEntry
entry = _memCache.CreateEntry(key);