public object GetCache(string key)
{
if (string.IsNullOrEmpty(key))
throw new ArgumentNullException();
if (this._cacheContent.ContainsKey(key))
{
CacheItem cacheItem = this._cacheContent[key];
if (cacheItem != null)
{
if (DateTime.Now.Subtract(cacheItem.CachedTime).TotalMilliseconds >= CacheManager.CacheDuration)
{
return null;
}
else
{
return cacheItem.Data;
}
}
else
{
return null;
}
}
else
{
return null;
}
}