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); /** * 删除缓存项中指定的元素.