com.ibatis.sqlmap.engine.cache
Interface CacheController

All Known Implementing Classes:
FifoCacheController, LruCacheController, MemoryCacheController, OSCacheController

public interface CacheController

Cache controller (implementation) interface


方法摘要
 void flush(CacheModel cacheModel)
          Flush a cache model
 java.lang.Object getObject(CacheModel cacheModel, java.lang.Object key)
          Get an object from a cache model
 void putObject(CacheModel cacheModel, java.lang.Object key, java.lang.Object object)
          Put an object into a cache model
 java.lang.Object removeObject(CacheModel cacheModel, java.lang.Object key)
          Remove an object from a cache model
 void setProperties(java.util.Properties props)
          Configure a cache controller
 

方法详细信息

flush

void flush(CacheModel cacheModel)
Flush a cache model

参数:
cacheModel - - the model to flush

getObject

java.lang.Object getObject(CacheModel cacheModel,
                           java.lang.Object key)
Get an object from a cache model

参数:
cacheModel - - the model
key - - the key to the object
返回:
the object if in the cache, or null(?)

removeObject

java.lang.Object removeObject(CacheModel cacheModel,
                              java.lang.Object key)
Remove an object from a cache model

参数:
cacheModel - - the model to remove the object from
key - - the key to the object
返回:
the removed object(?)

putObject

void putObject(CacheModel cacheModel,
               java.lang.Object key,
               java.lang.Object object)
Put an object into a cache model

参数:
cacheModel - - the model to add the object to
key - - the key to the object
object - - the object to add

setProperties

void setProperties(java.util.Properties props)
Configure a cache controller

参数:
props - - the properties object continaing configuration information