Skip to content
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

README: production notes, db(s) cleaning #19

Merged
merged 1 commit into from
Oct 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ See the [crate documentation][docs] for more usage information.

This crate uses `#![forbid(unsafe_code)]` to ensure everything is implemented in 100% safe Rust.

## Production notes

It is wise to run a background task in order to continuously remove stale sessions from databases used.
For example, each of the SQLx and MongoDB stores have [a method](https://docs.rs/tower-sessions/latest/tower_sessions/struct.SqliteStore.html#method.continuously_delete_expired) that's intended to be run as a task.

## 👯 Contributing

We appreciate all kinds of contributions, thank you!
Expand Down