1 write to _cache
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
57
_cache
= new MemoryCache(new MemoryCacheOptions());
4 references to _cache
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (4)
RuntimeViewCompiler.cs (4)
91
if (
_cache
.TryGetValue<Task<CompiledViewDescriptor>>(relativePath, out var cachedResult) && cachedResult is not null)
97
if (
_cache
.TryGetValue(normalizedPath, out cachedResult) && cachedResult is not null)
119
if (
_cache
.TryGetValue<Task<CompiledViewDescriptor>>(normalizedPath, out var result) && result is not null)
156
_cache
.Set(normalizedPath, taskSource.Task, cacheEntryOptions);