| java.lang.Object com.ibatis.sqlmap.engine.cache.lru.LruCacheController
LruCacheController | public class LruCacheController implements CacheController(Code) | | LRU (least recently used) cache controller implementation
|
LruCacheController | public LruCacheController()(Code) | | Default constructor
|
configure | public void configure(Properties props)(Code) | | Configures the cache
Parameters: props - Optionally can contain properties [reference-type=WEAK|SOFT|STRONG] |
flush | public void flush(CacheModel cacheModel)(Code) | | Flushes the cache.
Parameters: cacheModel - The cache model |
getObject | public Object getObject(CacheModel cacheModel, Object key)(Code) | | Get an object out of the cache.
Parameters: cacheModel - The cache model Parameters: key - The key of the object to be returned The cached object (or null) |
putObject | public void putObject(CacheModel cacheModel, Object key, Object value)(Code) | | Add an object to the cache
Parameters: cacheModel - The cacheModel Parameters: key - The key of the object to be cached Parameters: value - The object to be cached |
|
|