Commit 47a91799 authored by ZhengJie's avatar ZhengJie
Browse files

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

close https://github.com/elunez/eladmin/issues/479
parent a0a12839
......@@ -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());
}
}
\ No newline at end of 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());
}
}
\ No newline at end of file
......@@ -219,6 +219,5 @@ public class RoleServiceImpl implements RoleService {
redisUtils.delByKeys(CacheKey.ROLE_AUTH, userIds);
redisUtils.del(CacheKey.ROLE_ID + id);
}
}
}
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