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 TypeMethodDescriptionvoidflush(CacheModel cacheModel) Flush a cache model.getObject(CacheModel cacheModel, Object key) Get an object from a cache model.voidputObject(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.voidsetProperties(Properties props) Configure a cache controller.
-
Constructor Details
-
OSCacheController
public OSCacheController()
-
-
Method Details
-
flush
Description copied from interface:CacheControllerFlush a cache model.- Specified by:
flushin interfaceCacheController- Parameters:
cacheModel- - the model to flush
-
getObject
Description copied from interface:CacheControllerGet an object from a cache model.- Specified by:
getObjectin interfaceCacheController- Parameters:
cacheModel- - the modelkey- - the key to the object- Returns:
- the object if in the cache, or null(?)
-
removeObject
Description copied from interface:CacheControllerRemove an object from a cache model.- Specified by:
removeObjectin interfaceCacheController- Parameters:
cacheModel- - the model to remove the object fromkey- - the key to the object- Returns:
- the removed object(?)
-
putObject
Description copied from interface:CacheControllerPut an object into a cache model.- Specified by:
putObjectin interfaceCacheController- Parameters:
cacheModel- - the model to add the object tokey- - the key to the objectobject- - the object to add
-
setProperties
Description copied from interface:CacheControllerConfigure a cache controller.- Specified by:
setPropertiesin interfaceCacheController- Parameters:
props- - the properties object continaing configuration information
-