Class CoherenceCacheManager

java.lang.Object
com.oracle.coherence.spring.cache.CoherenceCacheManager
All Implemented Interfaces:
org.springframework.cache.CacheManager

public class CoherenceCacheManager extends Object implements org.springframework.cache.CacheManager
Implementation of the CacheManager for Oracle Coherence.
Since:
3.0
Author:
Gunnar Hillert
  • Constructor Details

    • CoherenceCacheManager

      public CoherenceCacheManager(com.tangosol.net.Coherence coherence)
      Constructs a new CoherenceCacheManager using the provided Coherence instance. The underlying CoherenceCacheConfiguration will be initialized with a timeToLive value of Duration.ZERO, which means that the expiration value for cache values will NOT be specified when performing cache puts. However, depending on your Coherence cache configuration in coherence-cache-config.xml cache values may still expire.
      Parameters:
      coherence - must not be null
    • CoherenceCacheManager

      public CoherenceCacheManager(com.tangosol.net.Coherence coherence, CoherenceCacheConfiguration defaultCacheConfiguration)
      Constructs a new CoherenceCacheManager using the provided Coherence instance.
      Parameters:
      coherence - must not be null
      defaultCacheConfiguration - must not be null
  • Method Details

    • getCache

      public org.springframework.cache.Cache getCache(String name)
      Specified by:
      getCache in interface org.springframework.cache.CacheManager
    • getCacheNames

      public Collection<String> getCacheNames()
      Specified by:
      getCacheNames in interface org.springframework.cache.CacheManager