Configuring L2 Caching

First, we need to modify our Spring boot project dependency to add Apache Ignite support. Edit the build.gradle and add the following dependencies:

 compile group: 'org.apache.ignite', name: 'ignite-core', version: '2.5.2' compile group: 'org.apache.ignite', name: 'ignite-spring', version: '2.5.2' compile group: 'org.apache.ignite', name: 'ignite-indexing', version: '2.5.2' compile group: 'org.apache.ignite', name: 'ignite-hibernate_5.1', version: '2.5.2' compile group: 'com.h2database', name: 'h2', version: '1.4.195'

The ignite-hibernate_5.1 is required for L2 caching, but this jar is not available in Maven central due to a licensing issue. We need to add the gridgain Maven repo in our build.gradle to bring this jar. ...

Get Apache Ignite Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.