Package io.ebean.cache
Class ServerCacheConfig
java.lang.Object
io.ebean.cache.ServerCacheConfig
public class ServerCacheConfig extends Object
Configuration used to create ServerCache instances.
-
Constructor Summary
Constructors Constructor Description ServerCacheConfig(ServerCacheType type, String cacheKey, String shortName, ServerCacheOptions cacheOptions, CurrentTenantProvider tenantProvider, QueryCacheEntryValidate queryCacheEntryValidate) -
Method Summary
Modifier and Type Method Description StringgetCacheKey()Return the name of the cache.ServerCacheOptionsgetCacheOptions()Return the tuning options.QueryCacheEntryValidategetQueryCacheEntryValidate()Return the service that provides validation for query cache entries.StringgetShortName()Return the short name for the cache.CurrentTenantProvidergetTenantProvider()Return the current tenant provider.ServerCacheTypegetType()Return the cache type.booleanisQueryCache()Return true if the cache is a query cache.
-
Constructor Details
-
ServerCacheConfig
public ServerCacheConfig(ServerCacheType type, String cacheKey, String shortName, ServerCacheOptions cacheOptions, CurrentTenantProvider tenantProvider, QueryCacheEntryValidate queryCacheEntryValidate)
-
-
Method Details
-
getType
Return the cache type. -
getCacheKey
Return the name of the cache. -
getShortName
Return the short name for the cache. -
getCacheOptions
Return the tuning options. -
getTenantProvider
Return the current tenant provider. -
getQueryCacheEntryValidate
Return the service that provides validation for query cache entries. -
isQueryCache
Return true if the cache is a query cache.
-