Class CoherenceCache
- java.lang.Object
-
- com.oracle.coherence.spring.cache.CoherenceCache
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.cache.Cache
Cache.ValueRetrievalException, Cache.ValueWrapper
-
-
Constructor Summary
Constructors Constructor Description CoherenceCache(com.tangosol.net.NamedCache<Object,Object> cache, CoherenceCacheConfiguration cacheConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
evict(Object key)
Cache.ValueWrapper
get(Object key)
<T> T
get(Object key, Class<T> type)
<T> T
get(Object key, Callable<T> valueLoader)
CoherenceCacheConfiguration
getCacheConfiguration()
Return the usedCoherenceCacheConfiguration
.String
getName()
Object
getNativeCache()
void
put(Object key, Object value)
int
size()
Returns the number of key-value mappings of the underlyingNamedCache
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.springframework.cache.Cache
evictIfPresent, invalidate, putIfAbsent
-
-
-
-
Constructor Detail
-
CoherenceCache
public CoherenceCache(com.tangosol.net.NamedCache<Object,Object> cache, CoherenceCacheConfiguration cacheConfiguration)
-
-
Method Detail
-
get
public Cache.ValueWrapper get(Object key)
-
getNativeCache
public Object getNativeCache()
- Specified by:
getNativeCache
in interfaceCache
-
size
public int size()
Returns the number of key-value mappings of the underlyingNamedCache
.- Returns:
- the number of key-value mappings in this map
-
getCacheConfiguration
public CoherenceCacheConfiguration getCacheConfiguration()
Return the usedCoherenceCacheConfiguration
.- Returns:
- never returns
null
.
-
-