public class CacheManager<T extends Cacheable> extends Object
Description:
| 限定符和类型 | 字段和说明 |
|---|---|
protected CacheCreator<T> |
cacheCreator |
protected AbstractCacheStorager<T> |
cacheStorager |
| 构造器和说明 |
|---|
CacheManager(CacheCreator<T> cacheCreator,
AbstractCacheStorager<T> cacheStorager) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearCache()
清除所有的缓存(请慎重)
|
T |
evictCache()
移除缓存
|
T |
getCache()
获取缓存对象
|
T |
refreshCache()
刷新缓存对象
|
protected final CacheCreator<T extends Cacheable> cacheCreator
protected final AbstractCacheStorager<T extends Cacheable> cacheStorager
public CacheManager(CacheCreator<T> cacheCreator, AbstractCacheStorager<T> cacheStorager)
public T getCache() throws WeixinException
WeixinExceptionpublic T refreshCache() throws WeixinException
WeixinExceptionpublic T evictCache()
public void clearCache()
Copyright © 2019. All rights reserved.