org.springframework.data.gemfire.support
Class GemfireCache

java.lang.Object
  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.cache.Cache
Cache.ValueWrapper
 
Constructor Summary
GemfireCache(com.gemstone.gemfire.cache.Region<?,?> region)
          Creates a GemFireCache instance.
 
Method Summary
 void clear()
           
 void evict(Object key)
           
 Cache.ValueWrapper get(Object key)
           
 String getName()
           
 com.gemstone.gemfire.cache.Region<?,?> getNativeCache()
           
 void put(Object key, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GemfireCache

public GemfireCache(com.gemstone.gemfire.cache.Region<?,?> region)
Creates a GemFireCache instance.

Parameters:
region - backing GemFire region
Method Detail

getName

public String getName()
Specified by:
getName in interface Cache

getNativeCache

public com.gemstone.gemfire.cache.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