org.springframework.data.gemfire.support
Class GemfireCacheManager
java.lang.Object
org.springframework.cache.support.AbstractCacheManager
org.springframework.data.gemfire.support.GemfireCacheManager
- All Implemented Interfaces:
- InitializingBean, CacheManager
public class GemfireCacheManager
- extends AbstractCacheManager
Spring Framework CacheManager backed by a Gemfire Cache. Automatically
discovers the created caches (or Regions in Gemfire terminology).
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GemfireCacheManager
public GemfireCacheManager()
loadCaches
protected Collection<Cache> loadCaches()
- Specified by:
loadCaches in class AbstractCacheManager
getCache
public Cache getCache(String name)
- Specified by:
getCache in interface CacheManager- Overrides:
getCache in class AbstractCacheManager
setCache
public void setCache(com.gemstone.gemfire.cache.Cache gemfireCache)
- Sets the GemFire Cache backing this
CacheManager.
- Parameters:
gemfireCache -
setRegions
public void setRegions(Set<com.gemstone.gemfire.cache.Region<?,?>> regions)
- Sets a set of regions to use (alternative to injecting the GemFire Cache)
- Parameters:
regions -