public class SpringCacheManager extends Object implements org.springframework.cache.CacheManager, org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.InitializingBean
| 构造器和说明 |
|---|
SpringCacheManager() |
SpringCacheManager(org.redisson.api.RedissonClient redisson,
Map<String,org.redisson.spring.cache.CacheConfig> config)
Creates CacheManager supplied by Redisson instance and Cache config
mapped by Cache name
|
SpringCacheManager(org.redisson.api.RedissonClient redisson,
Map<String,org.redisson.spring.cache.CacheConfig> config,
org.redisson.client.codec.Codec codec)
Creates CacheManager supplied by Redisson instance, Codec instance and
Cache config mapped by Cache name.
|
SpringCacheManager(org.redisson.api.RedissonClient redisson,
Map<String,org.redisson.spring.cache.CacheConfig> config,
Map<String,org.redisson.spring.cache.CacheConfig> patternConfig)
Creates CacheManager supplied by Redisson instance and Cache config
mapped by Cache name and RegExp config mapped by pattern.
|
SpringCacheManager(org.redisson.api.RedissonClient redisson,
Map<String,org.redisson.spring.cache.CacheConfig> config,
Map<String,org.redisson.spring.cache.CacheConfig> patternConfig,
org.redisson.client.codec.Codec codec)
Creates CacheManager supplied by Redisson instance, Codec instance, Cache
config mapped by Cache name and RegExp config mapped by pattern.
|
SpringCacheManager(org.redisson.api.RedissonClient redisson,
String configLocation)
Creates CacheManager supplied by Redisson instance and Cache config
mapped by Cache name.
|
SpringCacheManager(org.redisson.api.RedissonClient redisson,
String configLocation,
org.redisson.client.codec.Codec codec)
Creates CacheManager supplied by Redisson instance, Codec instance and
Config location path.
|
SpringCacheManager(org.redisson.api.RedissonClient redisson,
String configLocation,
String regExpConfigLocation)
Creates CacheManager supplied by Redisson instance, Cache config location
path and RegExp pattern config location path.
|
SpringCacheManager(org.redisson.api.RedissonClient redisson,
String configLocation,
String regExpConfigLocation,
org.redisson.client.codec.Codec codec)
Creates CacheManager supplied by Redisson instance, Codec instance,
Config location path and RegExp config location path.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
org.springframework.cache.Cache |
getCache(String name) |
Collection<String> |
getCacheNames() |
Collection<String> |
getConfigNames() |
Collection<String> |
getPatternNames() |
void |
setAllowNullValues(boolean allowNullValues) |
void |
setCodec(org.redisson.client.codec.Codec codec)
Set Codec instance shared between all Cache instances
|
void |
setConfig(Map<String,? extends org.redisson.spring.cache.CacheConfig> config)
Set cache config mapped by cache name
|
void |
setConfigLocation(String configLocation)
Set cache config location
|
void |
setPatternConfig(Map<String,org.redisson.spring.cache.CacheConfig> config)
Set cache regexp config mapped by pattern
|
void |
setRedisson(org.redisson.api.RedissonClient redisson)
Set Redisson instance
|
void |
setRegExpConfigLocation(String regExpConfigLocation)
Set RegExp pattern config location
|
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
public SpringCacheManager()
public SpringCacheManager(org.redisson.api.RedissonClient redisson,
Map<String,org.redisson.spring.cache.CacheConfig> config)
redisson - objectconfig - objectpublic SpringCacheManager(org.redisson.api.RedissonClient redisson,
Map<String,org.redisson.spring.cache.CacheConfig> config,
org.redisson.client.codec.Codec codec)
Each Cache instance share one Codec instance.
redisson - objectconfig - objectcodec - objectpublic SpringCacheManager(org.redisson.api.RedissonClient redisson,
Map<String,org.redisson.spring.cache.CacheConfig> config,
Map<String,org.redisson.spring.cache.CacheConfig> patternConfig)
redisson - objectconfig - objectpatternConfig - public SpringCacheManager(org.redisson.api.RedissonClient redisson,
Map<String,org.redisson.spring.cache.CacheConfig> config,
Map<String,org.redisson.spring.cache.CacheConfig> patternConfig,
org.redisson.client.codec.Codec codec)
Each Cache instance share one Codec instance.
redisson - objectconfig - objectpatternConfig - codec - objectpublic SpringCacheManager(org.redisson.api.RedissonClient redisson,
String configLocation)
Loads the config file from the class path, interpreting plain paths as class path resource names that include the package path (e.g. "mypackage/myresource.txt").
redisson - objectconfigLocation - pathpublic SpringCacheManager(org.redisson.api.RedissonClient redisson,
String configLocation,
String regExpConfigLocation)
Loads the config file from the class path, interpreting plain paths as class path resource names that include the package path (e.g. "mypackage/myresource.txt").
redisson - objectconfigLocation - pathregExpConfigLocation - public SpringCacheManager(org.redisson.api.RedissonClient redisson,
String configLocation,
org.redisson.client.codec.Codec codec)
Each Cache instance share one Codec instance.
Loads the config file from the class path, interpreting plain paths as class path resource names that include the package path (e.g. "mypackage/myresource.txt").
redisson - objectconfigLocation - pathcodec - objectpublic SpringCacheManager(org.redisson.api.RedissonClient redisson,
String configLocation,
String regExpConfigLocation,
org.redisson.client.codec.Codec codec)
Each Cache instance share one Codec instance.
Loads the config file from the class path, interpreting plain paths as class path resource names that include the package path (e.g. "mypackage/myresource.txt").
redisson - objectconfigLocation - pathregExpConfigLocation - codec - objectpublic void setConfigLocation(String configLocation)
configLocation - objectpublic void setRegExpConfigLocation(String regExpConfigLocation)
regExpConfigLocation - objectpublic void setConfig(Map<String,? extends org.redisson.spring.cache.CacheConfig> config)
config - objectpublic void setPatternConfig(Map<String,org.redisson.spring.cache.CacheConfig> config)
config - objectpublic void setRedisson(org.redisson.api.RedissonClient redisson)
redisson - instancepublic void setCodec(org.redisson.client.codec.Codec codec)
codec - objectpublic void setAllowNullValues(boolean allowNullValues)
public org.springframework.cache.Cache getCache(String name)
getCache 在接口中 org.springframework.cache.CacheManagerpublic Collection<String> getCacheNames()
getCacheNames 在接口中 org.springframework.cache.CacheManagerpublic Collection<String> getConfigNames()
public Collection<String> getPatternNames()
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader 在接口中 org.springframework.context.ResourceLoaderAwareCopyright © 2017. All rights reserved.