Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Consider adding support for flush mode #107

Open
vpavic opened this issue Sep 27, 2019 · 0 comments
Open

Consider adding support for flush mode #107

vpavic opened this issue Sep 27, 2019 · 0 comments

Comments

@vpavic
Copy link
Contributor

vpavic commented Sep 27, 2019

Immediate FlushMode can be used as a strategy for dealing with race conditions, by writing changes to data store as they happen, vs traditionally on invocation of #save on session repository.

Note that this is an option only for Servlet-based implementations, as org.springframework.session.Session#setAttribute returns void (and not Mono<Void>).

All SessionRepository implementations in Spring Session core modules support this and could be used for inspiration.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant