Class CoherenceCacheConfiguration


  • public class CoherenceCacheConfiguration
    extends Object
    Defines additional configuration properties for the CoherenceCache. Can also serve as default cache configuration via CoherenceCacheManager.
    Since:
    3.0
    Author:
    Gunnar Hillert
    • Constructor Detail

      • CoherenceCacheConfiguration

        public CoherenceCacheConfiguration()
      • CoherenceCacheConfiguration

        public CoherenceCacheConfiguration​(Duration timeToLive)
        Initialize the cache configuration properties.
        Parameters:
        timeToLive - the expiration time for cache entries. Set it to Duration.ZERO to not expire entries or to control the expiration via the coherence-cache-config.xml file.
    • Method Detail

      • getTimeToLive

        public Duration getTimeToLive()
        Returns the expiration time for cache entries. Should never be null.
        Returns:
        the time-to-live (TTL) for cache entries.
      • setTimeToLive

        public void setTimeToLive​(Duration timeToLive)
      • isUseCacheNamePrefix

        public boolean isUseCacheNamePrefix()
      • setUseCacheNamePrefix

        public void setUseCacheNamePrefix​(boolean useCacheNamePrefix)
      • getCacheNamePrefix

        public String getCacheNamePrefix()
      • setCacheNamePrefix

        public void setCacheNamePrefix​(String cacheNamePrefix)
      • getCacheName

        public String getCacheName​(String name)