[Rename] 调整 SingleCacheStore 某个命名;

[Rename] SingleCacheStore 更改'setIfNoExist'为'setIfNotExist';
This commit is contained in:
LamGC 2020-09-03 19:25:30 +08:00
parent c02336b0b6
commit 9f08ca0eba
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -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);
/**
* 获取缓存项值.