From f0b417f1eca24d664a48716fdce116595d565382 Mon Sep 17 00:00:00 2001 From: Linken Quy Dinh Date: Sun, 1 Oct 2023 13:00:13 -0300 Subject: [PATCH] README: production notes, db(s) cleaning --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index f2a02fd..2be15ec 100644 --- a/README.md +++ b/README.md @@ -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!