[Change] CacheStore-API, CacheStore-Local, CacheStore-Redis 调整 MapCacheStore.putAll 方法参数;

[Change] MapCacheStore 调整 'putAll' 方法的泛型, 以兼容类型的子类;
[Change] HashMapCacheStore, RedisMapCacheStore 适配更改;
This commit is contained in:
2021-01-12 06:39:48 +08:00
parent edb709fb0d
commit a090abc9a4
3 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ public class RedisMapCacheStore<V> extends RedisCacheStore<Map<String, V>> imple
}
@Override
public boolean putAll(CacheKey key, Map<String, V> map) {
public boolean putAll(CacheKey key, Map<? extends String, ? extends V> map) {
Objects.requireNonNull(key);
Objects.requireNonNull(map);
if (map.size() == 0) {