/// <summary>
        /// 获取指定角色的授权
        /// </summary>
        /// <param name="n"></param>
        /// <returns></returns>
        public List <RoleToPermissionCache> GetRoleToPermissionCache(long roleId)
        {
            //另一种写法(注释下)
            //ITypedCache<string, List<RoleToPermissionCache>> myCache = _cacheManager.GetCache(ROLE_PERMISSION).AsTyped<string, List<RoleToPermissionCache>>();
            //List<RoleToPermissionCache> roleToPermissionList = myCache.Get(roleId.ToString(), () => _sysRolesRepository.GetRoleToMenuActions(roleId));

            return(_cacheManager
                   .GetCache <string, List <RoleToPermissionCache> >(ROLE_PERMISSION)
                   .Get(roleId.ToString(), () =>
            {
                return _sysRolesRepository.GetRoleToMenuActions(roleId);
            }));
        }
        /// <summary>
        /// 获取指定角色的授权
        /// </summary>
        /// <param name="n"></param>
        /// <returns></returns>
        public List <RoleToPermissionCache> GetRoleToPermissionCache(long roleId)
        {
            //没发现与下面方式有嘛区别(注释下)
            //ITypedCache<string, List<SysMenus>> myCache = _cacheManager.GetCache(MenuCacheName).AsTyped<string, List<SysMenus>>();
            //List<SysMenus> sss = myCache.Get(n, () => GetMenuAll());

            return(_cacheManager
                   .GetCache <string, List <RoleToPermissionCache> >(ROLE_PERMISSION)
                   .Get(roleId.ToString(), () =>
            {
                return _sysRolesRepository.GetRoleToMenuActions(roleId);
            }));
        }