org.springframework.data.gemfire.support
Class GemfireCache
java.lang.Object
org.springframework.data.gemfire.support.GemfireCache
- All Implemented Interfaces:
- Cache
public class GemfireCache
- extends Object
- implements Cache
Spring Framework Cache
implementation using a GemFire Region
underneath.
Supports Gemfire 6.5 or higher.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GemfireCache
public GemfireCache(Region<?,?> region)
- Creates a
GemFireCache
instance.
- Parameters:
region
- backing GemFire region
getName
public String getName()
- Specified by:
getName
in interface Cache
getNativeCache
public Region<?,?> getNativeCache()
- Specified by:
getNativeCache
in interface Cache
clear
public void clear()
- Specified by:
clear
in interface Cache
evict
public void evict(Object key)
- Specified by:
evict
in interface Cache
get
public Cache.ValueWrapper get(Object key)
- Specified by:
get
in interface Cache
put
public void put(Object key,
Object value)
- Specified by:
put
in interface Cache