Class OSCacheController
java.lang.Object
com.ibatis.sqlmap.engine.cache.oscache.OSCacheController
- All Implemented Interfaces:
CacheController
Cache implementation for using OSCache with iBATIS.
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
OSCacheController
public OSCacheController()
-
-
Method Details
-
flush
Description copied from interface:CacheController
Flush a cache model.- Specified by:
flush
in interfaceCacheController
- Parameters:
cacheModel
- - the model to flush
-
getObject
Description copied from interface:CacheController
Get an object from a cache model.- Specified by:
getObject
in interfaceCacheController
- Parameters:
cacheModel
- - the modelkey
- - the key to the object- Returns:
- the object if in the cache, or null(?)
-
removeObject
Description copied from interface:CacheController
Remove an object from a cache model.- Specified by:
removeObject
in interfaceCacheController
- Parameters:
cacheModel
- - the model to remove the object fromkey
- - the key to the object- Returns:
- the removed object(?)
-
putObject
Description copied from interface:CacheController
Put an object into a cache model.- Specified by:
putObject
in interfaceCacheController
- Parameters:
cacheModel
- - the model to add the object tokey
- - the key to the objectobject
- - the object to add
-
setProperties
Description copied from interface:CacheController
Configure a cache controller.- Specified by:
setProperties
in interfaceCacheController
- Parameters:
props
- - the properties object continaing configuration information
-