Simple demo with spring boot configuration for redis-persisted sessions. This uses pivotal's redis-store session manager. Intended very much as a proof-of-concept and based on the Spring Boot "Hello World" sample.
Run gradle build
Run gradle bootRun
. The demo is configured to connect to Redis at localhost:32768
, the default port assigned by Docker. You
can override these by setting the redis.session-store.port
and redis.session-store.host
properties in src/main/resources/application.properties
.
- Run the
redis-cli
and theMONITOR
command - Run
curl -v http://localhost:8080/set?value=<any value>
. - Watch the activity on the Redis server