com.ibatis.sqlmap.engine.cache.fifo
public class FifoCacheController extends Object implements CacheController
| Constructor Summary | |
|---|---|
| FifoCacheController()
Default constructor | |
| Method Summary | |
|---|---|
| void | flush(CacheModel cacheModel)
Flushes the cache.
|
| int | getCacheSize() |
| Object | getObject(CacheModel cacheModel, Object key)
Get an object out of the cache.
|
| void | putObject(CacheModel cacheModel, Object key, Object value)
Add an object to the cache
|
| Object | removeObject(CacheModel cacheModel, Object key) |
| void | setCacheSize(int cacheSize) |
| void | setProperties(Properties props)
Configures the cache
|
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]