public class RedisCache<K,V> extends Object implements org.apache.shiro.cache.Cache<K,V>
| 构造器和说明 |
|---|
RedisCache(String prefix)
Constructs a cache instance with the specified
Redis manager and using a custom key prefix.
|
public RedisCache(String prefix)
prefix - The Redis key prefixpublic String getKeyPrefix()
public void setKeyPrefix(String keyPrefix)
keyPrefix - The prefixpublic void clear()
throws org.apache.shiro.cache.CacheException
public Collection<V> values()
Copyright © 2017. All rights reserved.