Class CoherenceCacheManager
java.lang.Object
com.oracle.coherence.spring.cache.CoherenceCacheManager
- All Implemented Interfaces:
org.springframework.cache.CacheManager
Implementation of the
CacheManager for Oracle Coherence.- Since:
- 3.0
- Author:
- Gunnar Hillert
-
Constructor Summary
ConstructorsConstructorDescriptionCoherenceCacheManager(com.tangosol.net.Coherence coherence) Constructs a newCoherenceCacheManagerusing the providedCoherenceinstance.CoherenceCacheManager(com.tangosol.net.Coherence coherence, CoherenceCacheConfiguration defaultCacheConfiguration) Constructs a newCoherenceCacheManagerusing the providedCoherenceinstance. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.cache.CacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cache.CacheManager
resetCaches
-
Constructor Details
-
CoherenceCacheManager
public CoherenceCacheManager(com.tangosol.net.Coherence coherence) Constructs a newCoherenceCacheManagerusing the providedCoherenceinstance. The underlyingCoherenceCacheConfigurationwill be initialized with a timeToLive value ofDuration.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 incoherence-cache-config.xmlcache values may still expire.- Parameters:
coherence- must not be null
-
CoherenceCacheManager
public CoherenceCacheManager(com.tangosol.net.Coherence coherence, CoherenceCacheConfiguration defaultCacheConfiguration) Constructs a newCoherenceCacheManagerusing the providedCoherenceinstance.- Parameters:
coherence- must not be nulldefaultCacheConfiguration- must not be null
-
-
Method Details
-
getCache
- Specified by:
getCachein interfaceorg.springframework.cache.CacheManager
-
getCacheNames
- Specified by:
getCacheNamesin interfaceorg.springframework.cache.CacheManager
-