public class CacheImpl extends org.springframework.cache.support.AbstractValueAdaptingCache implements DependencyAwareCache, org.springframework.beans.factory.DisposableBean
NULL| Constructor and Description |
|---|
CacheImpl(com.hazelcast.core.HazelcastInstance hz,
String hzTopicName,
String hzMapNamePrefix,
String name,
CacheSerializer serializer,
TimeToLiveConfig ttlConfig,
long firstLevelCacheSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
destroy() |
void |
evict(Object key) |
<T> T |
get(Object key,
Callable<T> valueLoader) |
long |
getHits() |
UUID |
getImplId() |
long |
getMisses() |
String |
getName() |
Object |
getNativeCache() |
void |
localClear() |
protected Object |
lookup(Object key) |
void |
put(Object key,
Object value) |
org.springframework.cache.Cache.ValueWrapper |
putIfAbsent(Object key,
Object value) |
void |
setCacheManager(org.springframework.cache.CacheManager cacheManager) |
void |
setCacheNameTree(CacheNameTree nameTree)
Set cache name tree
|
long |
size() |
String |
toString() |
fromStoreValue, get, get, isAllowNullValues, toStoreValue, toValueWrapperpublic CacheImpl(com.hazelcast.core.HazelcastInstance hz,
String hzTopicName,
String hzMapNamePrefix,
String name,
CacheSerializer serializer,
TimeToLiveConfig ttlConfig,
long firstLevelCacheSize)
public String getName()
getName in interface org.springframework.cache.Cachepublic Object getNativeCache()
getNativeCache in interface org.springframework.cache.Cachepublic void put(Object key, Object value)
put in interface org.springframework.cache.Cachepublic void evict(Object key)
evict in interface org.springframework.cache.Cachepublic void clear()
clear in interface org.springframework.cache.Cachepublic void localClear()
localClear in interface DependencyAwareCachepublic <T> T get(Object key, Callable<T> valueLoader)
get in interface org.springframework.cache.Cachepublic org.springframework.cache.Cache.ValueWrapper putIfAbsent(Object key, Object value)
putIfAbsent in interface org.springframework.cache.Cachepublic void setCacheNameTree(CacheNameTree nameTree)
DependencyAwareCachesetCacheNameTree in interface DependencyAwareCachenameTree - name treepublic void setCacheManager(org.springframework.cache.CacheManager cacheManager)
setCacheManager in interface DependencyAwareCachepublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionprotected Object lookup(Object key)
lookup in class org.springframework.cache.support.AbstractValueAdaptingCachepublic long getHits()
public long getMisses()
public long size()
public UUID getImplId()
getImplId in interface DependencyAwareCacheCopyright © 2018. All rights reserved.