public class CacheManager<K,V>
extends java.lang.Object
implements org.apache.shiro.cache.Cache<K,V>
构造器和说明 |
---|
CacheManager() |
限定符和类型 | 方法和说明 |
---|---|
java.util.Collection<org.apache.shiro.session.Session> |
allSession()
获取所有Session
|
void |
clear() |
V |
get(K key) |
org.apache.shiro.cache.Cache<K,V> |
getCache() |
org.apache.shiro.cache.ehcache.EhCacheManager |
getCacheManager() |
java.util.Set<K> |
keys() |
V |
put(K key,
V value) |
V |
remove(K key) |
void |
setCache(org.apache.shiro.cache.Cache<K,V> cache) |
void |
setCacheManager(org.apache.shiro.cache.ehcache.EhCacheManager cacheManager) |
int |
size() |
java.util.Collection<V> |
values() |
public void clear() throws org.apache.shiro.cache.CacheException
public org.apache.shiro.cache.ehcache.EhCacheManager getCacheManager()
public void setCacheManager(org.apache.shiro.cache.ehcache.EhCacheManager cacheManager)
public java.util.Collection<org.apache.shiro.session.Session> allSession() throws java.lang.Exception
java.lang.Exception
- 出错会抛出异常