Navigation Menu

Skip to content

mybatis/hazelcast-cache

Repository files navigation

MyBatis Hazelcast Extension

Java CI Coverage Status Maven central Sonatype Nexus (Snapshots) License

mybatis-logo

MyBatis-Hazelcast extension Hazelcast support for MyBatis Cache.

Essentials

This module contains two cache implementations utilizing Hazelcast:

  1. org.mybatis.caches.hazelcast.HazelcastCache:

Use "org.mybatis.caches.hazelcast.HazelcastCache" if you want the JVM running MyBatis to be part of the Hazelcast cache cluster.

Internally this is calling "Hazelcast.newHazelcastInstance()".

  1. org.mybatis.caches.hazelcast.HazelcastClientCache:

Use "org.mybatis.caches.hazelcast.HazelcastClientCache" if you want the JVM running MyBatis to be a client to a Hazelcast cache cluster running outside the JVM running MyBatis.

Internally this is calling "HazelcastClient.newHazelcastClient()". Also see https://hazelcast.org/docs/latest/manual/html/nativeclient.html

Support Hazelcast

mybatis-hazelcast 1.1.x supports hazelcast 3 - end of life (jdk 8) mybatis-hazelcast 1.2.x supports hazelcast 4 - end of life (jdk 8) mybatis-hazelcast 1.3.x supports hazelcast 5 until 5.3.x (jdk 8) mybatis-hazelcast 1.4.x supports hazelcast 5.4.x on (jdk 17)