public void Put(string key, object value)
{
Ensure.NotNullOrWhiteSpace(key, "key");
Ensure.NotNull(value, "value");
string cacheKey = GetCacheKey(key);
if (cache[cacheKey] != null)
{
cache.Remove(cacheKey);
}
if (!rootCacheKeyStored)
{
StoreRootCacheKey();
}
cache.Insert(cacheKey,
new DictionaryEntry(key, value),
new CacheDependency(null, new[] { rootCacheKey }),
System.Web.Caching.Cache.NoAbsoluteExpiration,
this.Expiration,
this.Priority,
null);
}