-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Add support for configuring Spring Session Redis repository #32205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2757,6 +2757,20 @@ | |
"name": "spring.session.redis.flush-mode", | ||
"defaultValue": "on-save" | ||
}, | ||
{ | ||
"name": "spring.session.redis.repository", | ||
"description": "Redis session repository implementation to use.", | ||
"values": [ | ||
{ | ||
"value": "default", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
"description": "Use default Redis session repository." | ||
}, | ||
{ | ||
"value": "indexed", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OTOH, |
||
"description": "Use indexed Redis session repository." | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "spring.session.redis.save-mode", | ||
"defaultValue": "on-set-attribute" | ||
|
@@ -3362,4 +3376,4 @@ | |
] | ||
} | ||
] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
management.endpoints.web.exposure.include=* | ||
spring.security.user.name=user | ||
spring.security.user.password=password | ||
spring.session.redis.repository=indexed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't 100% sure how to name this property, so I initially went with the simple option. Alternatively, this could maybe be named
spring.session.redis.repository-type
.