diff --git a/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/MapCacheStore.java b/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/MapCacheStore.java index ff7c78d..abe1ceb 100644 --- a/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/MapCacheStore.java +++ b/ContentGrabbingJi-CacheStore-api/src/main/java/net/lamgc/cgj/bot/cache/MapCacheStore.java @@ -67,7 +67,7 @@ public interface MapCacheStore extends CacheStore> { * @return 如果成功返回 true. * @throws NullPointerException 当 key/map 为 null 时抛出, 缓存存储容器不允许出现 null 值. */ - boolean putAll(CacheKey key, Map map); + boolean putAll(CacheKey key, Map map); /** * 如果字段不存在, 则会将指定的值与此映射中的指定字段关联. diff --git a/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/HashMapCacheStore.java b/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/HashMapCacheStore.java index e231ae1..5cc40f5 100644 --- a/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/HashMapCacheStore.java +++ b/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/HashMapCacheStore.java @@ -56,7 +56,7 @@ public class HashMapCacheStore extends HashCacheStore> impleme } @Override - public boolean putAll(CacheKey key, Map map) { + public boolean putAll(CacheKey key, Map map) { return getMap(key, true, keyMap -> { keyMap.putAll(Objects.requireNonNull(map)); return true; diff --git a/ContentGrabbingJi-CacheStore-redis/src/main/java/net/lamgc/cgj/bot/cache/redis/RedisMapCacheStore.java b/ContentGrabbingJi-CacheStore-redis/src/main/java/net/lamgc/cgj/bot/cache/redis/RedisMapCacheStore.java index c748f48..1bbd56e 100644 --- a/ContentGrabbingJi-CacheStore-redis/src/main/java/net/lamgc/cgj/bot/cache/redis/RedisMapCacheStore.java +++ b/ContentGrabbingJi-CacheStore-redis/src/main/java/net/lamgc/cgj/bot/cache/redis/RedisMapCacheStore.java @@ -107,7 +107,7 @@ public class RedisMapCacheStore extends RedisCacheStore> imple } @Override - public boolean putAll(CacheKey key, Map map) { + public boolean putAll(CacheKey key, Map map) { Objects.requireNonNull(key); Objects.requireNonNull(map); if (map.size() == 0) {