Skip to content

Commit 5d3cf1d

Browse files
authored
Merge pull request #1226 from commercetools/SUPPORT-33245/unbound-cache
SUPPORT-33245: remove cache boundary
2 parents bace496 + 0a86c32 commit 5d3cf1d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/com/commercetools/sync/commons/utils/CaffeineReferenceIdToKeyCacheImpl.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@
99
*
1010
* <p>Designed to be used as an reference in memory cache as a part of {@link
1111
* com.commercetools.sync.services.impl.BaseTransformServiceImpl} instances.
12-
*
13-
* <p>The cache is implemented by the caffeine library which implements a LRU based cache eviction
14-
* strategy. It means unused id to key pairs will be evicted, also it stores max 10000 pairs to
15-
* ensure the minimum memory consumption.
1612
*/
1713
public class CaffeineReferenceIdToKeyCacheImpl implements ReferenceIdToKeyCache {
1814
private static final Cache<String, String> referenceIdToKeyCache =
19-
Caffeine.newBuilder().maximumSize(1_000_000).executor(Runnable::run).build();
15+
Caffeine.newBuilder().executor(Runnable::run).build();
2016

2117
public CaffeineReferenceIdToKeyCacheImpl() {}
2218

0 commit comments

Comments
 (0)