public class SampleCacheContainer extends Object
| Constructor and Description |
|---|
SampleCacheContainer() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> org.infinispan.Cache<K,V> |
getCache()
Retrieves the default cache.
|
static <K,V> org.infinispan.Cache<K,V> |
getCache(String cacheName)
Retrieves a named cache.
|
static org.infinispan.manager.EmbeddedCacheManager |
getCacheContainer()
Retrieves the embedded cache manager.
|
public static <K,V> org.infinispan.Cache<K,V> getCache()
K - type used as keys in this cacheV - type used as values in this cachepublic static <K,V> org.infinispan.Cache<K,V> getCache(String cacheName)
K - type used as keys in this cacheV - type used as values in this cachecacheName - name of cache to retrievepublic static org.infinispan.manager.EmbeddedCacheManager getCacheContainer()
Copyright © 2014. All Rights Reserved.