Class CoherenceCacheManager
- java.lang.Object
-
- com.oracle.coherence.spring.cache.CoherenceCacheManager
-
- All Implemented Interfaces:
CacheManager
public class CoherenceCacheManager extends Object implements CacheManager
Implementation of theCacheManager
for Oracle Coherence.- Since:
- 3.0
- Author:
- Gunnar Hillert
-
-
Constructor Summary
Constructors Constructor Description CoherenceCacheManager(com.tangosol.net.Coherence coherence)
Constructs a newCoherenceCacheManager
using the providedCoherence
instance.CoherenceCacheManager(com.tangosol.net.Coherence coherence, CoherenceCacheConfiguration defaultCacheConfiguration)
Constructs a newCoherenceCacheManager
using the providedCoherence
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cache
getCache(String name)
Collection<String>
getCacheNames()
-
-
-
Constructor Detail
-
CoherenceCacheManager
public CoherenceCacheManager(com.tangosol.net.Coherence coherence)
Constructs a newCoherenceCacheManager
using the providedCoherence
instance. The underlyingCoherenceCacheConfiguration
will 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.xml
cache values may still expire.- Parameters:
coherence
- must not be null
-
CoherenceCacheManager
public CoherenceCacheManager(com.tangosol.net.Coherence coherence, CoherenceCacheConfiguration defaultCacheConfiguration)
Constructs a newCoherenceCacheManager
using the providedCoherence
instance.- Parameters:
coherence
- must not be nulldefaultCacheConfiguration
- must not be null
-
-
Method Detail
-
getCache
public Cache getCache(String name)
- Specified by:
getCache
in interfaceCacheManager
-
getCacheNames
public Collection<String> getCacheNames()
- Specified by:
getCacheNames
in interfaceCacheManager
-
-