DEV Community

loading...

Infinispan Cache Solution | Spring Cache | Spring Boot

loizenai
Software Engineer - Founder at https://loizenai.com
・2 min read

https://grokonez.com/spring-framework/spring-data/infinispan-cache-solution-spring-cache-spring-boot

Infinispan Cache Solution | Spring Cache | Spring Boot

Infinispan cache is a distributed in-memory key/value data store, it is a excellent cache for software system.The tutorial will guide you how to start with Infinispan by Spring Boot for making a caching solution.

Related Articles:

I. Technology for Infinispan cache tutorial

– Java 1.8
– Maven: 3.3.9
– Editor: Spring Tool Suite – Version 3.7.3.RELEASE
– Spring Boot: Version: 3.8.0.RELEASE

II. Overview

1. Structure of Project

spring caching- spring boot - infinispan - structure of project

2. Step to do

  • Create Spring Boot project
  • Add needed dependencies
  • Configure Infinispan cache
  • Create Data Model
  • Create Caching Service
  • Create Web Controller
  • Enable Caching
  • Run & Check Result with JConsole

    3. Demo video

    III. Practices

    1. Create Spring Boot project

    Open Spring Tool Suite, on main menu, choose File->New->Spring Starter Project, input project info as below pic:

createproject-springboot-springcaching-infinispan

Press Next button, then press Finish, Spring Boot project is created.

2. Add needed dependencies

Need Infinispan Dependencies and Spring Cache & Spring Web MVC dependencies

https://grokonez.com/spring-framework/spring-data/infinispan-cache-solution-spring-cache-spring-boot

Infinispan Cache Solution | Spring Cache | Spring Boot

Discussion (0)