io.ebeaninternal.server.cache.SpiCacheManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
package io.ebeaninternal.server.cache;
import io.ebean.cache.ServerCache;
import java.util.function.Supplier;
/**
* The cache service for server side caching of beans and query results.
*/
public interface SpiCacheManager {
/**
* Return true if the L2 caching is local.
*
* Local L2 caching means that the cache updates should occur in foreground
* rather than background processing.
*
*/
boolean isLocalL2Caching();
/**
* Return the cache for mapping natural keys to id values.
*/
Supplier getNaturalKeyCache(Class> beanType);
/**
* Return the cache for beans of a particular type.
*/
Supplier getBeanCache(Class> beanType);
/**
* Return the cache for associated many properties of a bean type.
*/
Supplier getCollectionIdsCache(Class> beanType, String propertyName);
/**
* Return the cache for query results of a particular type of bean.
*/
Supplier getQueryCache(Class> beanType);
/**
* Clear all the caches.
*/
void clearAll();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy