2 writes to ViewLookupCache
Microsoft.AspNetCore.Mvc.Razor (2)
RazorViewEngine.cs (2)
78ViewLookupCache = new MemoryCache(new MemoryCacheOptions()); 83ViewLookupCache = new MemoryCache(new MemoryCacheOptions());
6 references to ViewLookupCache
Microsoft.AspNetCore.Mvc.Razor (5)
RazorViewEngine.cs (4)
189if (!ViewLookupCache.TryGetValue(cacheKey, out ViewLocationCacheResult? cacheResult)) 207cacheResult = ViewLookupCache.Set( 262if (!ViewLookupCache.TryGetValue<ViewLocationCacheResult>(cacheKey, out var cacheResult) || cacheResult is null) 387ViewLookupCache.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)
2161public IMemoryCache ViewLookupCachePublic => ViewLookupCache;