|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibatis.sqlmap.engine.cache.memory.MemoryCacheController
public class MemoryCacheController
Memory-based implementation of CacheController
| Constructor Summary | |
|---|---|
MemoryCacheController()
|
|
| Method Summary | |
|---|---|
void |
flush(CacheModel cacheModel)
Flushes the cache. |
Object |
getObject(CacheModel cacheModel,
Object key)
Get an object out of the cache. |
MemoryCacheLevel |
getReferenceType()
|
void |
putObject(CacheModel cacheModel,
Object key,
Object value)
Add an object to the cache |
Object |
removeObject(CacheModel cacheModel,
Object key)
Remove an object from a cache model |
void |
setProperties(Properties props)
Configures the cache |
void |
setReferenceType(MemoryCacheLevel referenceType)
|
| 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 setProperties(Properties props)
setProperties in interface CacheControllerprops - Optionally can contain properties [reference-type=WEAK|SOFT|STRONG]public MemoryCacheLevel getReferenceType()
public void setReferenceType(MemoryCacheLevel referenceType)
public void putObject(CacheModel cacheModel,
Object key,
Object value)
putObject in interface CacheControllercacheModel - The cacheModelkey - The key of the object to be cachedvalue - The object to be cached
public Object getObject(CacheModel cacheModel,
Object key)
getObject in interface CacheControllercacheModel - The cache modelkey - The key of the object to be returned
public Object removeObject(CacheModel cacheModel,
Object key)
CacheController
removeObject in interface CacheControllercacheModel - - the model to remove the object fromkey - - the key to the object
public void flush(CacheModel cacheModel)
flush in interface CacheControllercacheModel - The cache model
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||