From 3ae0e4cd8dc72eb31440f921cac4fb9143daea06 Mon Sep 17 00:00:00 2001 From: LamGC Date: Mon, 8 Jun 2020 16:07:53 +0800 Subject: [PATCH] =?UTF-8?q?[Change]=20HotDataCacheStore=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA=E7=BA=A7=E5=88=AB?= =?UTF-8?q?(DEBUG=20->=20TRACE);?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/lamgc/cgj/bot/cache/HotDataCacheStore.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/net/lamgc/cgj/bot/cache/HotDataCacheStore.java b/src/main/java/net/lamgc/cgj/bot/cache/HotDataCacheStore.java index f360f53..51b5a94 100644 --- a/src/main/java/net/lamgc/cgj/bot/cache/HotDataCacheStore.java +++ b/src/main/java/net/lamgc/cgj/bot/cache/HotDataCacheStore.java @@ -39,7 +39,7 @@ public class HotDataCacheStore implements CacheStore, Cleanable { AutoCleanTimer.add(this); } - log.debug("HotDataCacheStore初始化完成. " + + log.trace("HotDataCacheStore初始化完成. " + "(Parent: {}, Current: {}, expireTime: {}, expireFloatRange: {}, autoClean: {})", parent, current, expireTime, expireFloatRange, autoClean); } @@ -58,24 +58,24 @@ public class HotDataCacheStore implements CacheStore, Cleanable { @Override public T getCache(String key) { if(!exists(key)) { - log.debug("查询缓存键名不存在, 直接返回null."); + log.trace("查询缓存键名不存在, 直接返回null."); return null; } T result = current.getCache(key); if(Objects.isNull(result)) { - log.debug("Current缓存库未命中, 查询Parent缓存库"); + log.trace("Current缓存库未命中, 查询Parent缓存库"); T parentResult = parent.getCache(key); if(Objects.isNull(parentResult)) { - log.debug("Parent缓存库未命中, 缓存不存在"); + log.trace("Parent缓存库未命中, 缓存不存在"); return null; } - log.debug("Parent缓存命中, 正在更新Current缓存库..."); + log.trace("Parent缓存命中, 正在更新Current缓存库..."); current.update(key, parentResult, expireTime + (expireFloatRange <= 0 ? 0 : random.nextInt(expireFloatRange))); - log.debug("Current缓存库更新完成."); + log.trace("Current缓存库更新完成."); result = parentResult; } else { - log.debug("Current缓存库缓存命中."); + log.trace("Current缓存库缓存命中."); } return result; }