Remove unused/untested dependent files support from IAppPolicyCache

This commit is contained in:
Ronald Barendse
2023-11-10 11:19:57 +01:00
committed by Bjarke Berg
parent 416c19854d
commit ace5c54da2
9 changed files with 135 additions and 228 deletions

View File

@@ -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)
{