/// <summary> /// 获取安全厂商的缓存 /// </summary> public static void GetSecurityList(bool isReset) { if (HttpContext.Current.Cache["ShowCacheSecurity"] == null || isReset) { List <SecurityOrg> list = new HBHtmlDAL().GetAQList(); HttpContext.Current.Cache.Insert("ShowCacheSecurity", list, null, DateTime.Now.AddHours(6), TimeSpan.Zero); } }
/// <summary> /// 获取缓存信息 /// </summary> /// <returns></returns> public static List <SecurityOrg> RefSecurityList() { if (HttpContext.Current.Cache["ShowCacheSecurity"] == null) { List <SecurityOrg> list = new HBHtmlDAL().GetAQList(); HttpContext.Current.Cache.Insert("ShowCacheSecurity", list, null, DateTime.Now.AddHours(6), TimeSpan.Zero); return(list); } else { return((List <SecurityOrg>)HttpContext.Current.Cache["ShowCacheSecurity"]); } }