mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-07-01 12:57:26 +00:00
[Change] CacheStore-API, CacheStore-Local, CacheStore-Redis 调整 MapCacheStore.putAll 方法参数;
[Change] MapCacheStore 调整 'putAll' 方法的泛型, 以兼容类型的子类; [Change] HashMapCacheStore, RedisMapCacheStore 适配更改;
This commit is contained in:
@ -56,7 +56,7 @@ public class HashMapCacheStore<V> extends HashCacheStore<Map<String, V>> impleme
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean putAll(CacheKey key, Map<String, V> map) {
|
||||
public boolean putAll(CacheKey key, Map<? extends String, ? extends V> map) {
|
||||
return getMap(key, true, keyMap -> {
|
||||
keyMap.putAll(Objects.requireNonNull(map));
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user