|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.jdon.controller.cache.CacheManager
public class CacheManager
Cacahe Managerment Pattern Client objects request objects from a CacheManager object by calling its fetchObject method. The argument to the fetchObject method is an CacheKey object that identifies the object to fetch. The fetchObject method works by first calling the Cache object’s fetchObject method. there is one CacheManager in jdon container, you can get it from the container, do not need create it.
| 构造方法摘要 | |
|---|---|
CacheManager(Cache cache)
|
|
| 方法摘要 | |
|---|---|
void |
clear()
|
boolean |
containObject(StringKey skey)
|
Object |
fetchObject(String skey)
|
Object |
fetchObject(StringKey skey)
从缓存中获得缓存 |
Cache |
getCache()
|
void |
putObect(CacheKey ckey,
Object value)
保存到缓存中 |
void |
putObect(String skey,
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. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public CacheManager(Cache cache)
| 方法详细信息 |
|---|
public void start()
Startable 复制的描述
Startable 中的 startpublic void stop()
Startable 复制的描述
Startable 中的 stoppublic void clear()
public Object fetchObject(StringKey skey)
cacheKey -
public Object fetchObject(String skey)
public boolean containObject(StringKey skey)
public void putObect(CacheKey ckey,
Object value)
cacheKey - value -
public void putObect(String skey,
Object value)
public void removeObect(StringKey skey)
cacheKey - public void removeObect(String skey)
public void removeCache(Object dataKey)
dataKey - formName - public Cache getCache()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||