|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectorg.crazycake.shiro.RedisCache<K,V>
public class RedisCache<K,V>
| 构造方法摘要 | |
|---|---|
RedisCache(RedisManager cache)
通过一个JedisManager实例构造RedisCache |
|
RedisCache(RedisManager cache,
String prefix)
Constructs a cache instance with the specified Redis manager and using a custom key prefix. |
|
| 方法摘要 | |
|---|---|
void |
clear()
|
V |
get(K key)
|
String |
getKeyPrefix()
Returns the Redis session keys prefix. |
Set<K> |
keys()
|
V |
put(K key,
V value)
|
V |
remove(K key)
|
void |
setKeyPrefix(String keyPrefix)
Sets the Redis sessions key prefix. |
int |
size()
|
Collection<V> |
values()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public RedisCache(RedisManager cache)
public RedisCache(RedisManager cache,
String prefix)
cache - The cache manager instanceprefix - The Redis key prefix| 方法详细信息 |
|---|
public String getKeyPrefix()
public void setKeyPrefix(String keyPrefix)
keyPrefix - The prefix
public V get(K key)
throws org.apache.shiro.cache.CacheException
org.apache.shiro.cache.Cache<K,V> 中的 getorg.apache.shiro.cache.CacheException
public V put(K key,
V value)
throws org.apache.shiro.cache.CacheException
org.apache.shiro.cache.Cache<K,V> 中的 putorg.apache.shiro.cache.CacheException
public V remove(K key)
throws org.apache.shiro.cache.CacheException
org.apache.shiro.cache.Cache<K,V> 中的 removeorg.apache.shiro.cache.CacheException
public void clear()
throws org.apache.shiro.cache.CacheException
org.apache.shiro.cache.Cache<K,V> 中的 clearorg.apache.shiro.cache.CacheExceptionpublic int size()
org.apache.shiro.cache.Cache<K,V> 中的 sizepublic Set<K> keys()
org.apache.shiro.cache.Cache<K,V> 中的 keyspublic Collection<V> values()
org.apache.shiro.cache.Cache<K,V> 中的 values
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||