|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibatis.sqlmap.engine.cache.memory.MemoryCacheController
Memory-based implementation of CacheController
Constructor Summary | |
MemoryCacheController()
|
Method Summary | |
void |
configure(java.util.Properties props)
Configures the cache |
void |
flush(CacheModel cacheModel)
Flushes the cache. |
java.lang.Object |
getObject(CacheModel cacheModel,
java.lang.Object key)
Get an object out of the cache. |
void |
putObject(CacheModel cacheModel,
java.lang.Object key,
java.lang.Object value)
Add an object to the cache |
java.lang.Object |
removeObject(CacheModel cacheModel,
java.lang.Object key)
Remove an object from a cache model |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MemoryCacheController()
Method Detail |
public void configure(java.util.Properties props)
configure
in interface CacheController
props
- Optionally can contain properties [reference-type=WEAK|SOFT|STRONG]public void putObject(CacheModel cacheModel, java.lang.Object key, java.lang.Object value)
putObject
in interface CacheController
cacheModel
- The cacheModelkey
- The key of the object to be cachedvalue
- The object to be cachedpublic java.lang.Object getObject(CacheModel cacheModel, java.lang.Object key)
getObject
in interface CacheController
cacheModel
- The cache modelkey
- The key of the object to be returned
public java.lang.Object removeObject(CacheModel cacheModel, java.lang.Object key)
CacheController
removeObject
in interface CacheController
cacheModel
- - the model to remove the object fromkey
- - the key to the object
public void flush(CacheModel cacheModel)
flush
in interface CacheController
cacheModel
- The cache model
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |