3 implementations of IMemoryCache
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Caching.Memory (1)
132 references to IMemoryCache
CookieSessionSample (1)
HtmlGenerationWebSite (2)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Mvc.Razor (4)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Microsoft.AspNetCore.Mvc.TagHelpers (18)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (50)
CacheTagKeyTest.cs (23)
29var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
49var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
55var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
73var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
79var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
97var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
103var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
124var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
130var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
177var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
206var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
232var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
260var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
286var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
309new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
333var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
353var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
376var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
397var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
424var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
446var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
478var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
510var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
LinkTagHelperTest.cs (10)
303Mock.Of<IMemoryCache>(),
391Mock.Of<IMemoryCache>(),
584Mock.Of<IMemoryCache>(),
625Mock.Of<IMemoryCache>(),
679Mock.Of<IMemoryCache>(),
865Mock.Of<IMemoryCache>(),
919Mock.Of<IMemoryCache>(),
989Mock.Of<IMemoryCache>(),
1032Mock.Of<IMemoryCache>(),
1074Mock.Of<IMemoryCache>(),
Microsoft.AspNetCore.ResponseCaching (2)
Microsoft.AspNetCore.Session.Tests (1)
Microsoft.Extensions.Caching.Abstractions (28)
MemoryCacheExtensions.cs (26)
11/// Provides extensions methods for <see cref="IMemoryCache"/> operations.
18/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
21public static object? Get(this IMemoryCache cache, object key)
31/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
34public static TItem? Get<TItem>(this IMemoryCache cache, object key)
43/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
47public static bool TryGetValue<TItem>(this IMemoryCache cache, object key, out TItem? value)
69/// Associate a value with a key in the <see cref="IMemoryCache"/>.
72/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
76public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value)
88/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
93public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, DateTimeOffset absoluteExpiration)
106/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
111public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, TimeSpan absoluteExpirationRelativeToNow)
124/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
129public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, IChangeToken expirationToken)
142/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
147public static TItem Set<TItem>(this IMemoryCache cache, object key, TItem value, MemoryCacheEntryOptions? options)
164/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
168public static TItem? GetOrCreate<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, TItem> factory)
177/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
182public static TItem? GetOrCreate<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, TItem> factory, MemoryCacheEntryOptions? createOptions)
204/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
208public static Task<TItem?> GetOrCreateAsync<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, Task<TItem>> factory)
217/// <param name="cache">The <see cref="IMemoryCache"/> instance this method extends.</param>
222public static async Task<TItem?> GetOrCreateAsync<TItem>(this IMemoryCache cache, object key, Func<ICacheEntry, Task<TItem>> factory, MemoryCacheEntryOptions? createOptions)
Microsoft.Extensions.Caching.Hybrid (3)
Microsoft.Extensions.Caching.Hybrid.Tests (6)
Microsoft.Extensions.Caching.Memory (13)