From 20f473dc4997e8b8a76f8c75d0a649be0a5ea139 Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期五, 02 四月 2021 00:32:03 +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