Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@
*
* <p>Designed to be used as an reference in memory cache as a part of {@link
* com.commercetools.sync.services.impl.BaseTransformServiceImpl} instances.
*
* <p>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<String, String> referenceIdToKeyCache =
Caffeine.newBuilder().maximumSize(1_000_000).executor(Runnable::run).build();
Caffeine.newBuilder().executor(Runnable::run).build();

public CaffeineReferenceIdToKeyCacheImpl() {}

Expand Down
Loading