[代码完善](v2.5): update dict cache

close https://github.com/elunez/eladmin/issues/479
pull/482/head
ZhengJie 2020-09-06 17:32:06 +08:00
parent a0a1283970
commit 47a9179988
3 changed files with 2 additions and 3 deletions

View File

@ -93,6 +93,6 @@ public class DictDetailServiceImpl implements DictDetailService {
public void delCaches(DictDetail dictDetail){
Dict dict = dictRepository.findById(dictDetail.getDict().getId()).orElseGet(Dict::new);
redisUtils.del("dept::name:" + dict.getName());
redisUtils.del("dict::name:" + dict.getName());
}
}

View File

@ -115,6 +115,6 @@ public class DictServiceImpl implements DictService {
}
public void delCaches(Dict dict){
redisUtils.del("dept::name:" + dict.getName());
redisUtils.del("dict::name:" + dict.getName());
}
}

View File

@ -219,6 +219,5 @@ public class RoleServiceImpl implements RoleService {
redisUtils.delByKeys(CacheKey.ROLE_AUTH, userIds);
redisUtils.del(CacheKey.ROLE_ID + id);
}
}
}