diff --git a/src/main/java/com/pig4cloud/plugin/cache/support/RedisCaffeineCache.java b/src/main/java/com/pig4cloud/plugin/cache/support/RedisCaffeineCache.java index 5696863..9eab5b5 100755 --- a/src/main/java/com/pig4cloud/plugin/cache/support/RedisCaffeineCache.java +++ b/src/main/java/com/pig4cloud/plugin/cache/support/RedisCaffeineCache.java @@ -343,7 +343,7 @@ protected void doGetAll(GetAllContext context) { boolean saveCacheAbsentKeys = context.saveRedisAbsentKeys; if (saveCacheAbsentKeys) { // mappingFunction 的参数 - context.redisAbsentKeys = new HashSet<>(redisAbsentCount); + context.redisAbsentKeys = new HashSet<>(redisAbsentCount, 1); } int index = 0; for (Object key : caffeineAbsentKeys) {