Simplified the base cache provider, no generics, these will be taken care of by extensions

This commit is contained in:
Shannon
2013-08-08 20:25:26 +10:00
parent 8c55946b1b
commit 8fea9530b5
10 changed files with 120 additions and 107 deletions

View File

@@ -29,11 +29,10 @@ namespace Umbraco.Core.Cache
/// <summary>
/// Gets (and adds if necessary) an item from the cache with all of the default parameters
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="cacheKey"></param>
/// <param name="getCacheItem"></param>
/// <returns></returns>
public override T GetCacheItem<T>(string cacheKey, Func<T> getCacheItem)
public override object GetCacheItem(string cacheKey, Func<object> getCacheItem)
{
return GetCacheItem(cacheKey, CacheItemPriority.Normal, null, null, null, getCacheItem, Locker);
}