You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dm...@apache.org on 2020/09/24 23:12:53 UTC
[ignite] branch IGNITE-7595 updated: ported the MyBatis integration
docs
This is an automated email from the ASF dual-hosted git repository.
dmagda pushed a commit to branch IGNITE-7595
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/IGNITE-7595 by this push:
new cebacad ported the MyBatis integration docs
cebacad is described below
commit cebacad1f46d20b9a1030efc0163be09b97bd7f1
Author: Denis Magda <dm...@gridgain.com>
AuthorDate: Thu Sep 24 16:12:35 2020 -0700
ported the MyBatis integration docs
---
docs/_data/toc.yaml | 2 ++
.../mybatis-l2-cache.adoc | 41 ++++++++++++++++++++++
2 files changed, 43 insertions(+)
diff --git a/docs/_data/toc.yaml b/docs/_data/toc.yaml
index 1d32928..356bbc8 100644
--- a/docs/_data/toc.yaml
+++ b/docs/_data/toc.yaml
@@ -397,6 +397,8 @@
url: extensions-and-integrations/ignite-for-spark/troubleshooting
- title: Hibernate L2 Cache
url: extensions-and-integrations/hibernate-l2-cache
+ - title: MyBatis L2 Cache
+ url: extensions-and-integrations/mybatis-l2-cache
- title: Plugins
url: plugins
- title: SQL Reference
diff --git a/docs/_docs/extensions-and-integrations/mybatis-l2-cache.adoc b/docs/_docs/extensions-and-integrations/mybatis-l2-cache.adoc
new file mode 100644
index 0000000..a2eb81e
--- /dev/null
+++ b/docs/_docs/extensions-and-integrations/mybatis-l2-cache.adoc
@@ -0,0 +1,41 @@
+= Apache Ignite as MyBatis L2 Cache
+
+Apache Ignite can be used as a MyBatis L2 cache that distributes and caches data across a cluster of machines.
+
+If you are an Apache Maven user, simply add the following dependency to the `pom.xml`:
+
+[tabs]
+--
+tab:pom.xml[]
+[source,xml]
+----
+<dependencies>
+ ...
+ <dependency>
+ <groupId>org.mybatis.caches</groupId>
+ <artifactId>mybatis-ignite</artifactId>
+ <version>1.0.5</version>
+ </dependency>
+ ...
+</dependencies>
+----
+--
+
+Alternatively, you can also download the https://github.com/mybatis/ignite-cache/releases[zip bundle, window=_blank],
+decompress it and add the jars in the classpath.
+
+Then, just specify it in the mapper XML as follows:
+
+[tabs]
+--
+tab:XML[]
+[source,xml]
+----
+<mapper namespace="org.acme.FooMapper">
+ <cache type="org.mybatis.caches.ignite.IgniteCacheAdapter" />
+</mapper>
+----
+--
+
+and configure your Ignite cache in `config/default-config.xml`. (Simple reference configurations are available on
+https://github.com/mybatis/ignite-cache/tree/master/config[Github, window=_blank])