Cache.ValueWrapper
Constructor and Description |
---|
GemfireCache(Region<?,?> region)
Creates a
GemFireCache instance. |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
evict(Object key) |
Cache.ValueWrapper |
get(Object key) |
<T> T |
get(Object key,
Class<T> type) |
String |
getName() |
Region<?,?> |
getNativeCache() |
void |
put(Object key,
Object value) |
Cache.ValueWrapper |
putIfAbsent(Object key,
Object value)
Implementation to satisfy extension of the
Cache interface in Spring 4.1. |
public GemfireCache(Region<?,?> region)
GemFireCache
instance.region
- backing GemFire regionpublic Region<?,?> getNativeCache()
getNativeCache
in interface Cache
public Cache.ValueWrapper get(Object key)
public Cache.ValueWrapper putIfAbsent(Object key, Object value)
Cache
interface in Spring 4.1. Don't add the Override
annotation as this will break the compilation on 4.0.org.springframework.cache.Cache#putIfAbsent(java.lang.Object, java.lang.Object)