/// <summary> /// 得到最新推荐精华 /// </summary> /// <param name="type"></param> /// <returns></returns> public static List<BBSMain> BBSMainNewListByPush(byte type) { string key = "BBSMainNewListByPush" + type; List<BBSMain> data = (List<BBSMain>)HttpRuntime.Cache[key]; if (data == null) { bizBBSMain b = new bizBBSMain(); data = b.ListByPush(1, 0, type, 12); HttpRuntime.Cache.Add(key, data, null, DateTime.Now.AddMinutes(30), System.Web.Caching.Cache.NoSlidingExpiration, CacheItemPriority.High, null); } return data; }