java.lang.Object
io.ebean.cache.ServerCacheConfig
Configuration used to create ServerCache instances.
-
Constructor Summary
ConstructorDescriptionServerCacheConfig
(ServerCacheType type, String cacheKey, String shortName, ServerCacheOptions cacheOptions, CurrentTenantProvider tenantProvider, QueryCacheEntryValidate queryCacheEntryValidate) -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the cache.Return the tuning options.Return the service that provides validation for query cache entries.Return the short name for the cache.Return the current tenant provider.getType()
Return the cache type.boolean
Return true if the cache is a query cache.tenantAware
(ServerCache cache) Return the ServerCache taking into account if multi-tenant is used.
-
Constructor Details
-
ServerCacheConfig
public ServerCacheConfig(ServerCacheType type, String cacheKey, String shortName, ServerCacheOptions cacheOptions, CurrentTenantProvider tenantProvider, QueryCacheEntryValidate queryCacheEntryValidate)
-
-
Method Details
-
tenantAware
Return the ServerCache taking into account if multi-tenant is used. -
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
public boolean isQueryCache()Return true if the cache is a query cache.
-