Exemplo n.º 1
0
        /// <summary>
        /// 得到最新视频帖
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static List<BBSMain> BBSMainNewByMedia()
        {
            string key = "BBSMainNewByMedia";
            List<BBSMain> data = (List<BBSMain>)HttpRuntime.Cache[key];
            if (data == null)
            {
                bizBBSMain b = new bizBBSMain();
                data = b.ListNewByMedia(1, 0, 12);
                HttpRuntime.Cache.Add(key, data, null, DateTime.Now.AddMinutes(30), System.Web.Caching.Cache.NoSlidingExpiration, CacheItemPriority.High, null);
            }

            return data;
        }