2 implementations of ICacheEntry
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
CacheTagHelperTest.cs (1)
968private class TestCacheEntry : ICacheEntry
Microsoft.Extensions.Caching.Memory (1)
CacheEntry.cs (1)
15internal sealed partial class CacheEntry : ICacheEntry
75 references to ICacheEntry
Microsoft.AspNetCore.Mvc.TagHelpers (1)
CacheTagHelper.cs (1)
113var entry = MemoryCache.CreateEntry(cacheKey);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (9)
CacheTagHelperTest.cs (4)
33var value = new Mock<ICacheEntry>(); 213var tempEntry = new Mock<ICacheEntry>(); 217var finalEntry = new Mock<ICacheEntry>(); 1000public ICacheEntry CreateEntry(object key)
DefaultFileVersionProviderTest.cs (2)
265var cacheEntry = Mock.Of<ICacheEntry>(c => c.ExpirationTokens == new List<IChangeToken>());
GlobbingUrlBuilderTest.cs (3)
274var value = new Mock<ICacheEntry>(); 414var cacheEntry = Mock.Of<ICacheEntry>(m => m.ExpirationTokens == new List<IChangeToken>());
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)
IMemoryCache.cs (2)
25/// <returns>The newly created <see cref="ICacheEntry"/> instance.</returns> 26ICacheEntry CreateEntry(object key);
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);
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)
107ICacheEntry cacheEntry = _localCache.CreateEntry(key);
Microsoft.Extensions.Caching.Hybrid.Tests (1)
StampedeTests.cs (1)
39ICacheEntry IMemoryCache.CreateEntry(object key) => throw new NotSupportedException("Intentionally not provided");
Microsoft.Extensions.Caching.Memory (4)
CacheEntry.cs (3)
66DateTimeOffset? ICacheEntry.AbsoluteExpiration 94TimeSpan? ICacheEntry.AbsoluteExpirationRelativeToNow 155long? ICacheEntry.Size
MemoryCache.cs (1)
105public ICacheEntry CreateEntry(object key)