public abstract class CacheManagerConfigAdapter
extends org.springframework.cache.annotation.CachingConfigurerSupport
| Constructor and Description |
|---|
CacheManagerConfigAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
applyItemTimeToLiveValues(TimeToLiveConfig ttlConfig)
Configure per item class time-to-live
|
org.springframework.cache.CacheManager |
cacheManager(CacheNameTree cacheNameTree,
com.hazelcast.core.HazelcastInstance hzInstance,
String hzTopicName,
long maxItems,
CacheSerializer cacheSerializer) |
protected Collection<String> |
cacheNamesToPreInitialize()
Configure pre-initialization of caches
|
CacheNameTree |
cacheNameTree() |
CacheSerializer |
cacheSerializer() |
protected abstract void |
configureCacheNameTree(CacheNameTree cacheNameTree)
Configure cache dependencies by names
|
org.springframework.cache.interceptor.KeyGenerator |
keyGenerator() |
protected TimeToLiveConfig |
ttlConfig() |
@Bean public org.springframework.cache.CacheManager cacheManager(CacheNameTree cacheNameTree, com.hazelcast.core.HazelcastInstance hzInstance, @Value(value="${cache.hazelcastTopicName:default}") String hzTopicName, @Value(value="${cache.maxItems:512}") long maxItems, CacheSerializer cacheSerializer)
@Bean public CacheNameTree cacheNameTree()
protected abstract void configureCacheNameTree(CacheNameTree cacheNameTree)
cacheNameTree - cache name treeprotected Collection<String> cacheNamesToPreInitialize()
public org.springframework.cache.interceptor.KeyGenerator keyGenerator()
keyGenerator in interface org.springframework.cache.annotation.CachingConfigurerkeyGenerator in class org.springframework.cache.annotation.CachingConfigurerSupport@Bean public CacheSerializer cacheSerializer()
protected TimeToLiveConfig ttlConfig()
protected abstract void applyItemTimeToLiveValues(TimeToLiveConfig ttlConfig)
ttlConfig - time-to-live configurationCopyright © 2018. All rights reserved.