Remove unused/untested dependent files support from IAppPolicyCache
This commit is contained in:
committed by
Bjarke Berg
parent
416c19854d
commit
ace5c54da2
@@ -12,10 +12,9 @@ public static class AppCacheExtensions
|
||||
string cacheKey,
|
||||
Func<T?> getCacheItem,
|
||||
TimeSpan? timeout,
|
||||
bool isSliding = false,
|
||||
string[]? dependentFiles = null)
|
||||
bool isSliding = false)
|
||||
{
|
||||
var result = provider.Get(cacheKey, () => getCacheItem(), timeout, isSliding, dependentFiles);
|
||||
var result = provider.Get(cacheKey, () => getCacheItem(), timeout, isSliding);
|
||||
return result == null ? default : result.TryConvertTo<T>().Result;
|
||||
}
|
||||
|
||||
@@ -24,9 +23,8 @@ public static class AppCacheExtensions
|
||||
string cacheKey,
|
||||
Func<T> getCacheItem,
|
||||
TimeSpan? timeout = null,
|
||||
bool isSliding = false,
|
||||
string[]? dependentFiles = null) =>
|
||||
provider.Insert(cacheKey, () => getCacheItem(), timeout, isSliding, dependentFiles);
|
||||
bool isSliding = false) =>
|
||||
provider.Insert(cacheKey, () => getCacheItem(), timeout, isSliding);
|
||||
|
||||
public static IEnumerable<T?> GetCacheItemsByKeySearch<T>(this IAppCache provider, string keyStartsWith)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user