Class IgniteCacheAdapter

java.lang.Object
org.mybatis.caches.ignite.IgniteCacheAdapter
All Implemented Interfaces:
org.apache.ibatis.cache.Cache

public final class IgniteCacheAdapter extends Object implements org.apache.ibatis.cache.Cache
Cache adapter for Ignite. Cache is initialized from IGNITE_HOME/config/default-config.xml settings, otherwise default one is started.
Author:
Roman Shtykh
  • Constructor Details

    • IgniteCacheAdapter

      public IgniteCacheAdapter(String id)
      Constructor.
      Parameters:
      id - Cache id.
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId 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
    • getObject

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

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

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

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

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