From 1420cd337bbc7eaf794f7be8f50d439ffbf3f577 Mon Sep 17 00:00:00 2001 From: LamGC Date: Thu, 3 Sep 2020 14:29:27 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20=E4=BF=AE=E5=A4=8D=20CollectionCacheSto?= =?UTF-8?q?re#clearCollection=20=E6=B2=A1=E6=9C=89=20key=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E9=97=AE=E9=A2=98;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Fix] CollectionCacheStore 为 clearCollection 方法添加 key 参数以指定缓存项; --- .../java/net/lamgc/cgj/bot/cache/CollectionCacheStore.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/CollectionCacheStore.java b/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/CollectionCacheStore.java index 6da09c6..c6e5010 100644 --- a/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/CollectionCacheStore.java +++ b/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/CollectionCacheStore.java @@ -73,9 +73,10 @@ public interface CollectionCacheStore extends CacheStore> { /** * 清空集合中的所有元素. + * @param key 欲清空集合的缓存项键名. * @return 操作成功返回 true. */ - boolean clearCollection(); + boolean clearCollection(String key); /** * 删除缓存项中指定的元素.