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


构造方法摘要
RedisCacheManager()
           
 
方法摘要
<K,V> org.apache.shiro.cache.Cache<K,V>
getCache(String name)
           
 String getKeyPrefix()
          Returns the Redis session keys prefix.
 RedisManager getRedisManager()
           
 void setKeyPrefix(String keyPrefix)
          Sets the Redis sessions key prefix.
 void setRedisManager(RedisManager redisManager)
           
 
从类 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.