infinispan / spring-session-redis-hot-replacement

Repository fork for spring-session replacing redis container by infinispan without changing the code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redis Hot Replacement for Spring Session examples

This repository is a fork of Spring Session repository where the Redis examples configurations are changed to showcase the hot replacement of Redis in favor of Infinispan.

Samples

There are 4 samples:

  • spring-session-sample-boot-redis

  • spring-session-sample-boot-redis-json

  • spring-session-sample-javaconfig-redis

  • spring-session-sample-xml-redis

The original code expects Redis running in localhost. These examples expect Infinispan running in localhost:11222

 docker run -it -p 11222:11222 -e USER="admin" -e PASS="secret" quay.io/infinispan/server:15.0

You can override the configuration by changing

spring.data.redis.host=localhost
spring.data.redis.port=11222
spring.data.redis.username=admin
spring.data.redis.password=secret

Tests on the examples use test containers.

Run examples:

./gradlew :spring-session-sample-boot-redis:bootRun

License

Spring Session is Open Source software released under the Apache 2.0 license.

About

Repository fork for spring-session replacing redis container by infinispan without changing the code

License:Apache License 2.0


Languages

Language:Java 93.5%Language:Groovy 5.6%Language:HTML 0.9%