public class LocalCache extends Object implements ICacheServiceEx
| 构造器和说明 |
|---|
LocalCache() |
LocalCache(int defSeconds) |
LocalCache(String keyHeader,
int defSeconds) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
<T> T |
get(String key,
Class<T> clz)
获取
|
String |
getCacheKeyHead()
缓存键的开头字符
|
int |
getDefalutSeconds()
默认缓存时间
|
void |
remove(String key)
移除
|
void |
store(String key,
Object obj,
int seconds)
保存
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, getBy, getBy, getBy, getBy, nameSet, tags, update, updategetpublic LocalCache()
public LocalCache(int defSeconds)
public LocalCache(String keyHeader, int defSeconds)
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 void clear()
public int getDefalutSeconds()
ICacheServicegetDefalutSeconds 在接口中 ICacheServicepublic String getCacheKeyHead()
ICacheServicegetCacheKeyHead 在接口中 ICacheServiceCopyright © 2023. All rights reserved.