Got pre-values caching properly and data types using the runtime cache provider correctly + unit tests.

This commit is contained in:
Shannon
2014-04-17 14:23:37 +10:00
parent d953966248
commit bf65bf5bab
14 changed files with 307 additions and 21 deletions

View File

@@ -114,6 +114,13 @@ namespace Umbraco.Core.Cache
select c.Value).ToList();
}
public IEnumerable<object> GetCacheItemsByKeyExpression(string regexString)
{
return (from c in MemoryCache
where Regex.IsMatch(c.Key, regexString)
select c.Value).ToList();
}
public virtual object GetCacheItem(string cacheKey)
{
var result = MemoryCache.Get(cacheKey);