public class RedisCacheManager extends Object implements org.apache.shiro.cache.CacheManager, org.apache.shiro.util.Initializable, org.apache.shiro.util.Destroyable
缓存管理器
Description:管理缓存池的初始化、获取当前缓存对象和销毁缓存池
| 限定符和类型 | 字段和说明 |
|---|---|
protected RedisCachePool |
cachePool
The cache pool used by this implementation to create caches.
|
| 构造器和说明 |
|---|
RedisCacheManager()
Default constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
<K,V> org.apache.shiro.cache.Cache<K,V> |
getCache(String name) |
RedisCachePool |
getCachePool() |
RedisCacheConfigFactory |
getConfigFactory() |
String |
getShiroCacheKeyPrefix() |
void |
init() |
void |
setConfigFactory(RedisCacheConfigFactory configFactory) |
void |
setShiroCacheKeyPrefix(String shiroCacheKeyPrefix) |
protected RedisCachePool cachePool
public RedisCachePool getCachePool()
public String getShiroCacheKeyPrefix()
public void setShiroCacheKeyPrefix(String shiroCacheKeyPrefix)
public RedisCacheConfigFactory getConfigFactory()
public void setConfigFactory(RedisCacheConfigFactory configFactory)
public final void init()
throws org.apache.shiro.ShiroException
init 在接口中 org.apache.shiro.util.Initializableorg.apache.shiro.ShiroExceptionpublic <K,V> org.apache.shiro.cache.Cache<K,V> getCache(String name) throws org.apache.shiro.cache.CacheException
getCache 在接口中 org.apache.shiro.cache.CacheManagerorg.apache.shiro.cache.CacheExceptionCopyright © 2018. All rights reserved.