Skip to content

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

License

Notifications You must be signed in to change notification settings

infinispan/spring-session-redis-hot-replacement

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published