org.crazycake.shiro
类 RedisCacheManager
java.lang.Object
org.crazycake.shiro.RedisCacheManager
- 所有已实现的接口:
- org.apache.shiro.cache.CacheManager
public class RedisCacheManager
- extends Object
- implements org.apache.shiro.cache.CacheManager
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RedisCacheManager
public RedisCacheManager()
getKeyPrefix
public String getKeyPrefix()
- Returns the Redis session keys
prefix.
- 返回:
- The prefix
setKeyPrefix
public void setKeyPrefix(String keyPrefix)
- Sets the Redis sessions key
prefix.
- 参数:
keyPrefix - The prefix
getCache
public <K,V> org.apache.shiro.cache.Cache<K,V> getCache(String name)
throws org.apache.shiro.cache.CacheException
- 指定者:
- 接口
org.apache.shiro.cache.CacheManager 中的 getCache
- 抛出:
org.apache.shiro.cache.CacheException
getRedisManager
public RedisManager getRedisManager()
setRedisManager
public void setRedisManager(RedisManager redisManager)
Copyright © 2014. All rights reserved.