AB3671 - Moved WebRuntime into infrastracutre, and removed typefinder reference in AppCaches (Replaced with string input with Type)..

- Move initialized of Current.Factory out of webruntime
This commit is contained in:
Bjarke Berg
2020-03-19 08:53:18 +01:00
parent f671fea998
commit f84798322c
30 changed files with 69 additions and 99 deletions

View File

@@ -73,7 +73,7 @@ namespace Umbraco.Core.Cache
var result = SafeLazy.GetSafeLazy(factory);
var value = result.Value; // force evaluation now - this may throw if cacheItem throws, and then nothing goes into cache
// do not store null values (backward compat), clone / reset to go into the cache
return value == null ? null : CheckCloneableAndTracksChanges(value);
return value == null ? null : CheckCloneableAndTracksChanges(value);
// clone / reset to go into the cache
}, timeout, isSliding, dependentFiles);
@@ -107,9 +107,9 @@ namespace Umbraco.Core.Cache
}
/// <inheritdoc />
public void ClearOfType(string typeName)
public void ClearOfType(Type type)
{
InnerCache.ClearOfType(typeName);
InnerCache.ClearOfType(type);
}
/// <inheritdoc />