diff --git a/src/main/java/com/commercetools/sync/commons/utils/CaffeineReferenceIdToKeyCacheImpl.java b/src/main/java/com/commercetools/sync/commons/utils/CaffeineReferenceIdToKeyCacheImpl.java index 0e723644d..2bc9929cb 100644 --- a/src/main/java/com/commercetools/sync/commons/utils/CaffeineReferenceIdToKeyCacheImpl.java +++ b/src/main/java/com/commercetools/sync/commons/utils/CaffeineReferenceIdToKeyCacheImpl.java @@ -9,14 +9,10 @@ * *

Designed to be used as an reference in memory cache as a part of {@link * com.commercetools.sync.services.impl.BaseTransformServiceImpl} instances. - * - *

The cache is implemented by the caffeine library which implements a LRU based cache eviction - * strategy. It means unused id to key pairs will be evicted, also it stores max 10000 pairs to - * ensure the minimum memory consumption. */ public class CaffeineReferenceIdToKeyCacheImpl implements ReferenceIdToKeyCache { private static final Cache referenceIdToKeyCache = - Caffeine.newBuilder().maximumSize(1_000_000).executor(Runnable::run).build(); + Caffeine.newBuilder().executor(Runnable::run).build(); public CaffeineReferenceIdToKeyCacheImpl() {}