Reputation: 251
I have my multiservices app that use spring HttpSession on Redis. All works fine but I want to know if is there a way to change the key value. To understand better, spring stores session data on redis on key "spring:session:......" I want to append the name of my app on the head: "myappname:spring:session:...."
Someone knows if is it possible?
Thanks
Upvotes: 1
Views: 785
Reputation: 1508
In your properties file try to add :
spring.session.redis.namespace= myapp # Namespace for keys used to store sessions.
you will have somthing like: spring:session:myapp
Upvotes: 1