[代码完善](v2.5): v2.5 beta 加入缓存成功删除提示

close #363
pull/372/head
ZhengJie 2020-05-20 17:29:38 +08:00
parent 9b90cc41ca
commit 6bb8b9ce3e
1 changed files with 6 additions and 1 deletions

View File

@ -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("--------------------------------------------");
}
}