Package com.ibatis.sqlmap.engine.cache
Interface CacheController
- All Known Implementing Classes:
FifoCacheController
,LruCacheController
,MemoryCacheController
,OSCacheController
public interface CacheController
Cache controller (implementation) interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flush
(CacheModel cacheModel) Flush a cache model.getObject
(CacheModel cacheModel, Object key) Get an object from a cache model.void
putObject
(CacheModel cacheModel, Object key, Object object) Put an object into a cache model.removeObject
(CacheModel cacheModel, Object key) Remove an object from a cache model.void
setProperties
(Properties props) Configure a cache controller.
-
Method Details
-
flush
Flush a cache model.- Parameters:
cacheModel
- - the model to flush
-
getObject
Get an object from a cache model.- Parameters:
cacheModel
- - the modelkey
- - the key to the object- Returns:
- the object if in the cache, or null(?)
-
removeObject
Remove an object from a cache model.- Parameters:
cacheModel
- - the model to remove the object fromkey
- - the key to the object- Returns:
- the removed object(?)
-
putObject
Put an object into a cache model.- Parameters:
cacheModel
- - the model to add the object tokey
- - the key to the objectobject
- - the object to add
-
setProperties
Configure a cache controller.- Parameters:
props
- - the properties object continaing configuration information
-