using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace Umbraco.Core.Cache
{
///
/// Implements on top of a concurrent dictionary.
///
public class DictionaryAppCache : IAppCache
{
///
/// Gets the internal items dictionary, for tests only!
///
internal readonly ConcurrentDictionary Items = new ConcurrentDictionary();
///
public virtual object Get(string key)
{
// fixme throws if non-existing, shouldn't it return null?
return Items[key];
}
///
public virtual object Get(string key, Func