[Fix] 修复 CollectionCacheStore#clearCollection 没有 key 参数的问题;

[Fix] CollectionCacheStore 为 clearCollection 方法添加 key 参数以指定缓存项;
This commit is contained in:
LamGC 2020-09-03 14:29:27 +08:00
parent 6f8e03baf5
commit 1420cd337b
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -73,9 +73,10 @@ public interface CollectionCacheStore<E> extends CacheStore<Collection<E>> {
/** /**
* 清空集合中的所有元素. * 清空集合中的所有元素.
* @param key 欲清空集合的缓存项键名.
* @return 操作成功返回 true. * @return 操作成功返回 true.
*/ */
boolean clearCollection(); boolean clearCollection(String key);
/** /**
* 删除缓存项中指定的元素. * 删除缓存项中指定的元素.