public class CacheManager extends Object implements Startable
| 构造器和说明 |
|---|
CacheManager(Cache cache) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
boolean |
containObject(StringKey skey) |
Object |
fetchObject(String skey) |
Object |
fetchObject(StringKey skey)
从缓存中获得缓存
|
Cache |
getCache() |
Object |
putIfAbsent(StringKey ckey,
Object value) |
void |
putObect(StringKey ckey,
Object value)
保存到缓存中
|
void |
removeCache(Object dataKey)
清除缓存中该dataKey的相关所有缓存数据 当该dataKey相关的数据增删改时,调用本方法。
|
void |
removeObect(String skey) |
void |
removeObect(StringKey skey)
清除缓存
|
void |
start()
Start this component.
|
void |
stop()
Stop this component.
|
public CacheManager(Cache cache)
public void clear()
public boolean containObject(StringKey skey)
public void removeObect(StringKey skey)
cacheKey - public void removeObect(String skey)
public void removeCache(Object dataKey)
dataKey - formName - public Cache getCache()
Copyright © 2018. All rights reserved.