Commit 6bb8b9ce authored by ZhengJie's avatar ZhengJie
Browse files

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

close #363
parent 9b90cc41
......@@ -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("--------------------------------------------");
}
}
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