Class MemcachedCache

java.lang.Object
org.mybatis.caches.memcached.MemcachedCache
All Implemented Interfaces:
org.apache.ibatis.cache.Cache

public final class MemcachedCache extends Object implements org.apache.ibatis.cache.Cache
The Memcached-based Cache implementation.
Author:
Simone Tripodi
  • Constructor Details

    • MemcachedCache

      public MemcachedCache(String id)
      Builds a new Memcached-based Cache.
      Parameters:
      id - the Mapper id.
  • Method Details

    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.ibatis.cache.Cache
    • getId

      public String getId()
      Specified by:
      getId in interface org.apache.ibatis.cache.Cache
    • getObject

      public Object getObject(Object key)
      Specified by:
      getObject in interface org.apache.ibatis.cache.Cache
    • getReadWriteLock

      public ReadWriteLock getReadWriteLock()
      Specified by:
      getReadWriteLock in interface org.apache.ibatis.cache.Cache
    • getSize

      public int getSize()
      Specified by:
      getSize in interface org.apache.ibatis.cache.Cache
    • putObject

      public void putObject(Object key, Object value)
      Specified by:
      putObject in interface org.apache.ibatis.cache.Cache
    • removeObject

      public Object removeObject(Object key)
      Specified by:
      removeObject in interface org.apache.ibatis.cache.Cache