com.ibatis.sqlmap.engine.cache.memory
public class MemoryCacheController extends Object implements CacheController
| 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) |
| void | setProperties(Properties props)
Configures the cache
|
| void | setReferenceType(MemoryCacheLevel referenceType) |
Parameters: cacheModel The cache model
Parameters: cacheModel The cache model key The key of the object to be returned
Returns: The cached object (or null)
Parameters: cacheModel The cacheModel key The key of the object to be cached value The object to be cached
Parameters: props Optionally can contain properties [reference-type=WEAK|SOFT|STRONG]