2 writes to ViewLookupCache
Microsoft.AspNetCore.Mvc.Razor (2)
RazorViewEngine.cs (2)
78
ViewLookupCache
= new MemoryCache(new MemoryCacheOptions());
83
ViewLookupCache
= new MemoryCache(new MemoryCacheOptions());
6 references to ViewLookupCache
Microsoft.AspNetCore.Mvc.Razor (5)
RazorViewEngine.cs (4)
189
if (!
ViewLookupCache
.TryGetValue(cacheKey, out ViewLocationCacheResult? cacheResult))
207
cacheResult =
ViewLookupCache
.Set(
262
if (!
ViewLookupCache
.TryGetValue<ViewLocationCacheResult>(cacheKey, out var cacheResult) || cacheResult is null)
387
ViewLookupCache
.Set(cacheKey, cacheResult, cacheEntryOptions);
ViewLocationCacheKey.cs (1)
7
/// Key for entries in <see cref="RazorViewEngine.
ViewLookupCache
"/>.
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorViewEngineTest.cs (1)
2161
public IMemoryCache ViewLookupCachePublic =>
ViewLookupCache
;