Пример #1
0
        /// <summary>
        /// 得到用户积分排行榜
        /// </summary>
        /// <returns></returns>
        public List<Users> ListUserScore()
        {
            string SysName = "ListUserScore";
            List<Users> list=null;

            if (SysCache.Contains(SysName))
            {
                list= SysCache.Get(SysName) as List<Users>;
            }

            if (list != null)
                return list;

            bizUsers bu = new bizUsers();
            list = bu.ListTopByScore(150);
            SysCache.Add(SysName, list, new AbsoluteTime(DateTime.Now.AddHours(2)));
            return list;
        }