From a66b556036c2b3936a51fd7b7e54a204eb31dc14 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 30 七月 2021 19:13:14 +0800 Subject: [PATCH] 短视频爬虫,短视频搜索 --- src/main/java/com/yeshi/buwan/util/EHCacheManager.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/util/EHCacheManager.java b/src/main/java/com/yeshi/buwan/util/EHCacheManager.java index f961d7a..9a12f92 100644 --- a/src/main/java/com/yeshi/buwan/util/EHCacheManager.java +++ b/src/main/java/com/yeshi/buwan/util/EHCacheManager.java @@ -17,8 +17,9 @@ * * @param cacheName */ - public void removeCacheByCacheName(String cacheName) { - ehCacheCacheManager.getCacheManager().removeCache(cacheName); + public void clearCacheByCacheName(String cacheName) { + Cache cache = ehCacheCacheManager.getCacheManager().getCache(cacheName); + cache.removeAll(); } /** -- Gitblit v1.8.0