Example #1
0
        /// <summary>
        /// 获取用户具有的权限
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public DataTable GetGameListByRoleId(string roleid, int channelid)
        {
            string cacheStrphold = string.Format("CommonSearch_GetGameListByRoleId_{0}_{1}", roleid, channelid);

            if ((WebCache.GetCache(cacheStrphold) == null))
            {
                lock (lockHelp)
                {
                    if ((WebCache.GetCache(cacheStrphold) == null))
                    {
                        DataTable dt = commonSearch.GetGameListByRoleId(roleid);

                        WebCache.SetCache(cacheStrphold, dt, 60);
                    }
                }
            }
            return((DataTable)WebCache.GetCache(cacheStrphold));
        }