|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.dreampie.cache.CacheProvider
public abstract class CacheProvider
Abstract method to be sub-classed by various caching technologies.
| 字段摘要 | |
|---|---|
static CacheProvider |
PROVIDER
|
| 构造方法摘要 | |
|---|---|
CacheProvider()
|
|
| 方法摘要 | ||
|---|---|---|
void |
addCache(String group,
String key,
Object cache)
Adds item to cache. |
|
abstract void |
addCache(String group,
String key,
Object cache,
int expired)
|
|
void |
addCacheEventListener(CacheEventListener listener)
|
|
abstract void |
doFlush(CacheEvent event)
|
|
void |
flush(CacheEvent event)
Flash cache. |
|
abstract
|
getCache(String group,
String key)
Returns a cached item. |
|
void |
removeAllCacheEventListeners()
|
|
abstract void |
removeCache(String group,
String key)
remove item from cache. |
|
void |
removeCacheEventListener(CacheEventListener listener)
|
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final CacheProvider PROVIDER
| 构造方法详细信息 |
|---|
public CacheProvider()
| 方法详细信息 |
|---|
public abstract <T> T getCache(String group,
String key)
group - group of caches - this is a name of a table for which query results are cachedkey - key of the item.
public void addCache(String group,
String key,
Object cache)
group - group name of cache.key - key of the item.cache - cache item to add to cache.
public abstract void addCache(String group,
String key,
Object cache,
int expired)
public abstract void removeCache(String group,
String key)
group - group name of cache.key - key of the item.public abstract void doFlush(CacheEvent event)
public final void flush(CacheEvent event)
event - type of caches to flush.public final void addCacheEventListener(CacheEventListener listener)
public final void removeCacheEventListener(CacheEventListener listener)
public final void removeAllCacheEventListeners()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||