Configure Redis settings in your microservice's application.yml
:
spring:
redis:
host: localhost
port: 6379
password: your_redis_password # Remove this line if no password is required
Launch Redis using Docker:
docker run --name redis -d -p 6379:6379 redis
cd <microservice>
mvn spring-boot:run
docker exec -it redis redis-cli
redis-cli > ping // Test Redis connection, returns PONG if connection is successful.
redis-cli > monitor // Real-time monitoring of session creation and sharing between service calls.