With Spring Session moving to RedisSessionRepository as the preferred session repository, Spring Boot auto-configuration should make it possible to easily switch back to the previous default (RedisIndexedSessionRepository).
This commit introduces spring.session.redis.repository configuration property that allow selecting the desired Redis-backed session repository implementation.
Closes #30673
Comment From: wilkinsona
@vpavic I see you just force-pushed. What did you change? I was just in the process of getting this ready to merge and I don't want to miss something.
Comment From: vpavic
Hey @wilkinsona, sorry I had intended to drop a note here after force pushing but forgot to do so in the end. Nothing changed, I just rebased the branch as it was few hundred commits behind and also wanted to verify everything works as expected with the changes that were shipped with the latest Spring Session milestone yesterday.
Comment From: wilkinsona
Thanks, @vpavic. I've polished things a little in https://github.com/spring-projects/spring-boot/commit/2977373505265762b3638e4881a30fe85a1e792e, primarily to go with your repository-type idea for the property name. I've also tried to make it fail nicely if you try to configure the cleanup cron when using the default repository.
Comment From: vpavic
I've also tried to make it fail nicely if you try to configure the cleanup cron when using the default repository.
I just tried the snapshots and this works (fails?) very nicely indeed. Very useful.