Class OSCacheController

java.lang.Object
com.ibatis.sqlmap.engine.cache.oscache.OSCacheController
All Implemented Interfaces:
CacheController

public class OSCacheController extends Object implements CacheController
Cache implementation for using OSCache with iBATIS.
  • Constructor Details

    • OSCacheController

      public OSCacheController()
  • Method Details

    • flush

      public void flush(CacheModel cacheModel)
      Description copied from interface: CacheController
      Flush a cache model.
      Specified by:
      flush in interface CacheController
      Parameters:
      cacheModel - - the model to flush
    • getObject

      public Object getObject(CacheModel cacheModel, Object key)
      Description copied from interface: CacheController
      Get an object from a cache model.
      Specified by:
      getObject in interface CacheController
      Parameters:
      cacheModel - - the model
      key - - the key to the object
      Returns:
      the object if in the cache, or null(?)
    • removeObject

      public Object removeObject(CacheModel cacheModel, Object key)
      Description copied from interface: CacheController
      Remove an object from a cache model.
      Specified by:
      removeObject in interface CacheController
      Parameters:
      cacheModel - - the model to remove the object from
      key - - the key to the object
      Returns:
      the removed object(?)
    • putObject

      public void putObject(CacheModel cacheModel, Object key, Object object)
      Description copied from interface: CacheController
      Put an object into a cache model.
      Specified by:
      putObject in interface CacheController
      Parameters:
      cacheModel - - the model to add the object to
      key - - the key to the object
      object - - the object to add
    • setProperties

      public void setProperties(Properties props)
      Description copied from interface: CacheController
      Configure a cache controller.
      Specified by:
      setProperties in interface CacheController
      Parameters:
      props - - the properties object continaing configuration information