Class CacheOptions


  • public class CacheOptions
    extends Object
    Options for controlling cache behaviour for a given type.
    • Constructor Detail

      • CacheOptions

        public CacheOptions​(io.ebean.annotation.Cache cache,
                            String[] naturalKey)
        Construct with cache annotation.
    • Method Detail

      • 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.