Commit d0e3bd55 authored by ZhengJie's avatar ZhengJie
Browse files

[代码完善](v2.5): v2.5 beta 优化角色缓存

2.5 进度: https://www.ydyno.com/archives/1225.html
parent fc7858f0
......@@ -123,6 +123,7 @@ public class RoleServiceImpl implements RoleService {
List<User> users = userRepository.findByRoleId(role.getId());
Set<Long> userIds = users.stream().map(User::getId).collect(Collectors.toSet());
redisUtils.delByKeys("menu::user:",userIds);
redisUtils.del("role::id:" + resources.getId());
// 更新菜单
role.setMenus(resources.getMenus());
roleRepository.save(role);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment