Core.Cache - bugfix + add new method to remove items from cache

This commit is contained in:
Stephan
2013-09-18 12:27:38 +02:00
parent 491b56ee27
commit c2db7b2b9b
6 changed files with 115 additions and 41 deletions

View File

@@ -35,11 +35,6 @@ namespace Umbraco.Core.Cache
provider.InsertCacheItem(cacheKey, () => getCacheItem(), timeout, isSliding, priority, removedCallback, dependentFiles);
}
public static void ClearCacheObjectTypes<T>(this ICacheProvider provider)
{
provider.ClearCacheObjectTypes(typeof(T).ToString());
}
public static IEnumerable<T> GetCacheItemsByKeySearch<T>(this ICacheProvider provider, string keyStartsWith)
{
var result = provider.GetCacheItemsByKeySearch(keyStartsWith);