From 579049b9439c356b5af21880a4296e38b7372c42 Mon Sep 17 00:00:00 2001 From: LamGC Date: Tue, 14 Apr 2020 10:41:13 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20HotDataCacheStore=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=AF=B9CacheStore=E6=96=B0=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E7=9A=84=E5=85=BC=E5=AE=B9;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lamgc/cgj/bot/cache/HotDataCacheStore.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 1aead4a..63ab516 100644 --- a/src/main/java/net/lamgc/cgj/bot/cache/HotDataCacheStore.java +++ b/src/main/java/net/lamgc/cgj/bot/cache/HotDataCacheStore.java @@ -74,6 +74,11 @@ public class HotDataCacheStore implements CacheStore { return result; } + @Override + public T getCache(String key, long index, long length) { + return getCache(key); + } + @Override public boolean exists(String key) { return current.exists(key) || parent.exists(key); @@ -84,6 +89,11 @@ public class HotDataCacheStore implements CacheStore { return current.exists(key, date) || parent.exists(key, date); } + @Override + public long length(String key) { + return -1; + } + @Override public boolean clear() { return current.clear(); @@ -93,4 +103,9 @@ public class HotDataCacheStore implements CacheStore { public boolean supportedPersistence() { return current.supportedPersistence() || parent.supportedPersistence(); } + + @Override + public boolean supportedList() { + return false; + } }