Logo

dev-resources.site

for different kinds of informations.

Infinispan Cache Solution | Spring Cache | Spring Boot

Published at
5/7/2021
Categories
springboot
springcache
infinispan
cache
Author
loizenai
Author
8 person written this
loizenai
open
Infinispan Cache Solution | Spring Cache | Spring Boot

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

Featured ones: