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)
{
return Items.TryGetValue(key, out var value) ? value : null;
}
///
public virtual object Get(string key, Func