| | |
| | | return permsMapper.selectMenuRecursive(id, uid); |
| | | } |
| | | |
| | | public void clearResCache() { |
| | | redisService.clearKeys(RedisCacheKey.permsResKey("")); |
| | | } |
| | | |
| | | /** |
| | | * 清除授权缓存 |
| | | */ |
| | | public void clearPermsCache() { |
| | | redisService.clearKeys(RedisCacheKey.permsMenusKey("")); |
| | | redisService.clearKeys(RedisCacheKey.permsPermsKey("")); |
| | | redisService.clearKeys(RedisCacheKey.permsPermsEntityKey("")); |
| | | redisService.clearKeys(RedisCacheKey.permsRootKey()); |
| | | } |
| | | |
| | | /** |
| | | * 清除所有缓存 |
| | | */ |
| | | public void clearAllCache() { |
| | | redisService.clearKeys(RedisCacheKey.permsRootKey()); |
| | | redisService.clearAll(); |
| | | } |
| | | } |