|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.jdon.cache.LRUCache
public class LRUCache
the LRU Cache implemention. default is OFBiz's UtilCache, we can replace it with better cache product. cache parameters must be defined, and the configure file name must be defined in container.xml too.
| 构造方法摘要 | |
|---|---|
LRUCache(String configFileName)
configFileName must be defined in container.xml |
|
| 方法摘要 | |
|---|---|
void |
clear()
|
boolean |
contain(Object key)
|
Object |
get(Object key)
|
long |
getCacheHits()
|
long |
getCacheMisses()
|
Collection |
keySet()
|
void |
put(Object key,
Object value)
|
void |
remove(Object key)
|
long |
size()
|
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 LRUCache(String configFileName)
configFileName - | 方法详细信息 |
|---|
public Object get(Object key)
Cache 中的 get
public void put(Object key,
Object value)
Cache 中的 putpublic void remove(Object key)
Cache 中的 removepublic long size()
Cache 中的 sizepublic void clear()
Cache 中的 clearpublic boolean contain(Object key)
Cache 中的 containpublic Collection keySet()
Cache 中的 keySetpublic void stop()
Startable 复制的描述
Startable 中的 stoppublic void start()
Startable 复制的描述
Startable 中的 startpublic long getCacheHits()
Cache 中的 getCacheHitspublic long getCacheMisses()
Cache 中的 getCacheMisses
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||