public class SecondCache extends Object implements ICacheServiceEx
| 构造器和说明 |
|---|
SecondCache(ICacheServiceEx cache1,
ICacheServiceEx cache2) |
SecondCache(ICacheServiceEx cache1,
ICacheServiceEx cache2,
int bufferSeconds) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(String tag)
清空缓存
|
<T> T |
get(String key,
Class<T> clz)
获取
|
String |
getCacheKeyHead()
缓存键的开头字符
|
int |
getDefalutSeconds()
默认缓存时间
|
void |
remove(String key)
移除
|
void |
store(String key,
Object obj,
int seconds)
保存
|
CacheTags |
tags()
缓存标签管理器
|
<T> void |
update(String tag,
Class<T> clz,
Fun1<T,T> setter)
更新缓存
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetpublic SecondCache(ICacheServiceEx cache1, ICacheServiceEx cache2)
public SecondCache(ICacheServiceEx cache1, ICacheServiceEx cache2, int bufferSeconds)
public void store(String key, Object obj, int seconds)
ICacheServicestore 在接口中 ICacheServicepublic <T> T get(String key, Class<T> clz)
ICacheServiceget 在接口中 ICacheServicepublic void remove(String key)
ICacheServiceremove 在接口中 ICacheServicepublic int getDefalutSeconds()
ICacheServicegetDefalutSeconds 在接口中 ICacheServicepublic String getCacheKeyHead()
ICacheServicegetCacheKeyHead 在接口中 ICacheServicepublic CacheTags tags()
ICacheServiceExtags 在接口中 ICacheServiceExpublic void clear(String tag)
ICacheServiceExclear 在接口中 ICacheServiceExpublic <T> void update(String tag, Class<T> clz, Fun1<T,T> setter)
ICacheServiceExupdate 在接口中 ICacheServiceExCopyright © 2023. All rights reserved.