Interface CacheConfiguration


  • public interface CacheConfiguration
    Interface used for the configuration of caches.
    • Method Detail

      • getCacheDuration

        Duration getCacheDuration()
        Returns the duration of the expire after write property of the cache. Cached elements are automatically invalidated after this fixed duration has elapsed.
        Returns:
        duration of expire after write.
      • getCacheSize

        int getCacheSize()
        Returns the number of elements the cache can hold.
        Returns:
        the size of the cache.
      • isCacheDisabled

        default boolean isCacheDisabled()
        Caching is disabled when this returns true.
        Returns:
        true if cache is disabled
      • isCacheStatisticsEnabled

        default boolean isCacheStatisticsEnabled()
        Returns true if cache statistics recording has been enabled. If it is enabled, cache statistics might be obtained from the Cacheable.
        Returns:
        true if cache statistics is enabled