Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
47a91799
Commit
47a91799
authored
Sep 06, 2020
by
ZhengJie
Browse files
[代码完善](v2.5): update dict cache
close
https://github.com/elunez/eladmin/issues/479
parent
a0a12839
Changes
3
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/DictDetailServiceImpl.java
View file @
47a91799
...
...
@@ -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
(
"d
ep
t::name:"
+
dict
.
getName
());
redisUtils
.
del
(
"d
ic
t::name:"
+
dict
.
getName
());
}
}
\ No newline at end of file
eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/DictServiceImpl.java
View file @
47a91799
...
...
@@ -115,6 +115,6 @@ public class DictServiceImpl implements DictService {
}
public
void
delCaches
(
Dict
dict
){
redisUtils
.
del
(
"d
ep
t::name:"
+
dict
.
getName
());
redisUtils
.
del
(
"d
ic
t::name:"
+
dict
.
getName
());
}
}
\ No newline at end of file
eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java
View file @
47a91799
...
...
@@ -219,6 +219,5 @@ public class RoleServiceImpl implements RoleService {
redisUtils
.
delByKeys
(
CacheKey
.
ROLE_AUTH
,
userIds
);
redisUtils
.
del
(
CacheKey
.
ROLE_ID
+
id
);
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment