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