Cache.ValueWrapper
Constructor and Description |
---|
GemfireCache(com.gemstone.gemfire.cache.Region<?,?> region)
Creates a
GemFireCache instance. |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
evict(Object key)
Evicts (destroys) the entry (key/value) mapped to the given key from this Spring
Cache . |
Cache.ValueWrapper |
get(Object key) |
<T> T |
get(Object key,
Callable<T> valueLoader) |
<T> T |
get(Object key,
Class<T> type) |
String |
getName() |
com.gemstone.gemfire.cache.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(com.gemstone.gemfire.cache.Region<?,?> region)
GemFireCache
instance.region
- backing GemFire regionpublic com.gemstone.gemfire.cache.Region<?,?> getNativeCache()
getNativeCache
in interface Cache
public void evict(Object key)
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.putIfAbsent
in interface Cache
Cache.putIfAbsent(java.lang.Object, java.lang.Object)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.