mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-29 22:27:33 +00:00
[Rename] 调整 SingleCacheStore 某个命名;
[Rename] SingleCacheStore 更改'setIfNoExist'为'setIfNotExist';
This commit is contained in:
parent
c02336b0b6
commit
9f08ca0eba
@ -44,7 +44,7 @@ public interface SingleCacheStore<V> extends CacheStore<V> {
|
||||
* @return 如果成功返回 true, 当 key 已存在, 或设置失败时返回 false.
|
||||
* @throws NullPointerException 当 key 或 value 为 null 时抛出; 本方法不允许存储 null 值, 因为 null 代表"没有/不存在".
|
||||
*/
|
||||
boolean setIfNoExist(String key, V value);
|
||||
boolean setIfNotExist(String key, V value);
|
||||
|
||||
/**
|
||||
* 获取缓存项值.
|
||||
|
Loading…
Reference in New Issue
Block a user