From fa82f3a67388aba69ce8c41a0c3c17e0cb8c0035 Mon Sep 17 00:00:00 2001 From: FlyInWind <2518509078@qq.com> Date: Wed, 21 Dec 2022 22:57:00 +0800 Subject: [PATCH] =?UTF-8?q?HashSet=20=E6=8C=87=E5=AE=9A=20loadFactor?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=85=8D=20rehash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/pig4cloud/plugin/cache/support/RedisCaffeineCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {