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
6bb8b9ce
Commit
6bb8b9ce
authored
May 20, 2020
by
ZhengJie
Browse files
[代码完善](v2.5): v2.5 beta 加入缓存成功删除提示
close #363
parent
9b90cc41
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-common/src/main/java/me/zhengjie/utils/RedisUtils.java
View file @
6bb8b9ce
...
...
@@ -654,6 +654,11 @@ public class RedisUtils {
for
(
Long
id
:
ids
)
{
keys
.
addAll
(
redisTemplate
.
keys
(
new
StringBuffer
(
prefix
).
append
(
id
).
toString
()));
}
redisTemplate
.
delete
(
keys
);
long
count
=
redisTemplate
.
delete
(
keys
);
// 此处提示可自行删除
System
.
out
.
println
(
"--------------------------------------------"
);
System
.
out
.
println
(
"成功删除缓存:"
+
keys
.
toString
());
System
.
out
.
println
(
"缓存删除数量:"
+
count
+
"个"
);
System
.
out
.
println
(
"--------------------------------------------"
);
}
}
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