cloud.eppo.cache.NonExpiringInMemoryAssignmentCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-common-jvm Show documentation
Show all versions of sdk-common-jvm Show documentation
Eppo SDK for JVM shared library
package cloud.eppo.cache;
import cloud.eppo.api.AbstractAssignmentCache;
import java.util.concurrent.ConcurrentHashMap;
/**
* A cache that never expires.
*
* The primary use case is for client-side SDKs, where the cache is only used for a single user
* and won't grow out of control.
*/
public class NonExpiringInMemoryAssignmentCache extends AbstractAssignmentCache {
public NonExpiringInMemoryAssignmentCache() {
super(new ConcurrentHashMap<>());
}
}