![JAR search and dependency download from the Maven repository](/logo.png)
com.turbospaces.ebean.AbstractEbeanCache Maven / Gradle / Ivy
package com.turbospaces.ebean;
import java.io.ByteArrayInputStream;
import java.io.ObjectInputStream;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.BiConsumer;
import org.apache.commons.lang3.SerializationUtils;
import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.turbospaces.cache.BlockhoundCacheWrapper;
import com.turbospaces.cfg.ApplicationProperties;
import io.ebean.cache.ServerCacheConfig;
import io.ebean.cache.ServerCacheStatistics;
import io.ebean.cache.ServerCacheType;
import io.ebean.cache.TenantAwareKey;
import io.ebean.config.CurrentTenantProvider;
import io.ebeaninternal.server.cache.CachedBeanData;
import io.ebeaninternal.server.cache.CachedManyIds;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class AbstractEbeanCache implements LocalCache, PutableCache {
private final ApplicationProperties props;
private final String cacheKey;
private final BlockhoundCacheWrapper cache;
private final TenantAwareKey tenantAwareKey;
private final ServerCacheConfig config;
protected AbstractEbeanCache(
ApplicationProperties props,
String cacheKey,
BlockhoundCacheWrapper cache,
CurrentTenantProvider tenantProvider,
ServerCacheConfig config) {
this.props = Objects.requireNonNull(props);
this.cacheKey = Objects.requireNonNull(cacheKey);
this.cache = Objects.requireNonNull(cache);
this.tenantAwareKey = new TenantAwareKey(tenantProvider);
this.config = Objects.requireNonNull(config);
}
@Override
public Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy