public static int maxBBSNoticeID = 0; //bbs公告的最新公告ID #endregion Fields #region Methods /// <summary> /// 得到最新视频帖 /// </summary> /// <param name="type"></param> /// <returns></returns> public static List<BBSMain> BBSMainNewByImage() { string key = "BBSMainNewByImage"; List<BBSMain> data = (List<BBSMain>)HttpRuntime.Cache[key]; if (data == null) { bizBBSMain b = new bizBBSMain(); data = b.ListNewByImages(1, 0, 12); HttpRuntime.Cache.Add(key, data, null, DateTime.Now.AddMinutes(30), System.Web.Caching.Cache.NoSlidingExpiration, CacheItemPriority.High, null); } return data; }