MyBatis Ignite Integration - Reference Documentation

Apache Ignite is a distributed database for high-performance computing and low-latency data access.

Users who want to use Apache Ignite in their applications as a second-level cache can add the following dependency to their pom.xml:

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

Then, configure it in the mapper XML:

        <cache type="org.mybatis.caches.ignite.IgniteCacheAdapter"/>
      

The cache adapter uses the Apache Ignite 3 client API to connect to an Ignite server. By default, it connects to 127.0.0.1:10800. The connection address can be customized using the ignite.addresses property in config/default-config.properties.