MyBatis Ignite Integration - Reference Documentation

Apache Ignite is a high-performance, integrated and distributed in-memory platform for computing and transacting on large-scale data sets in real-time, orders of magnitude faster than possible with traditional disk-based or flash technologies.

Users who want to use Apache Ignite in their applications as a 2nd level cache have to download the zip bundle, decompress it and add the jars in the classpath. Apache Maven users instead can simply add in the pom.xml the following dependency:

<dependencies>
  ...
  <dependency>
    <groupId>org.mybatis.caches</groupId>
    <artifactId>mybatis-ignite</artifactId>
    <version>1.1.2-SNAPSHOT</version>
  </dependency>
  ...
</dependencies>

then, configure it in the mapper XML

<mapper namespace="org.acme.FooMapper">
  <cache type="org.mybatis.caches.ignite.IgniteCacheAdapter" />
</mapper>

and configure your Ignite cache in config/default-config.xml by specifying the properties of "templateCacheCfg" bean (Basic reference configurations are available here.) If config/default-config.xml is not available, the cache is started with the default settings.

For more details, please see Apache Ignite docs or ask in the mailing list.