File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/main/java/com/commercetools/sync/commons/utils Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 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 */
1713public 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
You can’t perform that action at this time.
0 commit comments