java.lang.Object
io.ebeaninternal.server.core.CacheOptions
Options for controlling cache behaviour for a given type.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCacheOptions(io.ebean.annotation.Cache cache, String[] naturalKey) Construct with cache annotation. -
Method Summary
Modifier and TypeMethodDescriptionString[]Return the natural key property name.Return the cache region name.static CacheOptionsinvalidateQueryCache(String region) booleanReturn true if bean caching is enabled.booleanReturn true if query caching is enabled.booleanReturn true if this is InvalidateQueryCache.booleanReturn true if bean cache hits default to read only.
-
Field Details
-
NO_CACHING
Instance when no caching is used.
-
-
Constructor Details
-
CacheOptions
Construct with cache annotation.
-
-
Method Details
-
invalidateQueryCache
-
getRegion
Return the cache region name. -
isInvalidateQueryCache
public boolean isInvalidateQueryCache()Return true if this is InvalidateQueryCache. A Bean that itself isn't L2 cached but invalidates query cache entries that join to it. -
isEnableBeanCache
public boolean isEnableBeanCache()Return true if bean caching is enabled. -
isEnableQueryCache
public boolean isEnableQueryCache()Return true if query caching is enabled. -
isReadOnly
public boolean isReadOnly()Return true if bean cache hits default to read only. -
getNaturalKey
Return the natural key property name.
-