System.Web.Caching.Cache.RemoveCacheItem C# (CSharp) Method

RemoveCacheItem() private method

private RemoveCacheItem ( string key ) : System.Web.Caching.CacheItem
key string
return System.Web.Caching.CacheItem
		CacheItem RemoveCacheItem (string key)
		{
			if (key == null)
				return null;

			CacheItem ret = cache [key];
			if (ret == null)
				return null;
			
			if (timedItems != null)
				timedItems.OnItemDisable (ret);
			
			ret.Disabled = true;
			cache.Remove (key);
			
			return ret;
		}