public static void AddObject(string CacheKey, object value, CacheItemPriority cacheItemPriority = 0) { CheckFile(); if (Convert.ToInt32(cacheItemPriority) == 0) { cacheItemPriority = _CacheItemPriority; } HttpContext.Current.Cache.Add(CacheKey, value, _CacheDependency, Expiration, Cache.NoSlidingExpiration, cacheItemPriority, null); }