File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/main/java/com/commercetools/sync/commons/utils Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 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.
1212 *
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.
1613 */
1714public class CaffeineReferenceIdToKeyCacheImpl implements ReferenceIdToKeyCache {
1815 private static final Cache <String , String > referenceIdToKeyCache =
19- Caffeine .newBuilder ().maximumSize ( 1_000_000 ). executor (Runnable ::run ).build ();
16+ Caffeine .newBuilder ().executor (Runnable ::run ).build ();
2017
2118 public CaffeineReferenceIdToKeyCacheImpl () {}
2219
You can’t perform that action at this time.
0 commit comments