Skip to content

Support for caching session store #187

Answered by maxcountryman
lmpn asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure if this is what you meant, but something like this seems to be working for me:

diff --git a/examples/sqlite/Cargo.toml b/examples/sqlite/Cargo.toml
index 0874b35..cc37c39 100644
--- a/examples/sqlite/Cargo.toml
+++ b/examples/sqlite/Cargo.toml
@@ -21,5 +21,6 @@ tokio = { version = "1.34.0", features = ["full"] }
 tower = "0.4.13"
 tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
 tower-sessions = { version = "0.10.0", default-features = false }
+tower-sessions-redis-store = { version = "0.10.0" }
 tower-sessions-sqlx-store = { version = "0.10.0", features = ["sqlite"] }
 thiserror = "1.0.56"
diff --git a/examples/sqlite/src/web/app.rs b/examples/sqlite/s…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@lmpn
Comment options

@maxcountryman
Comment options

Answer selected by lmpn
@lmpn
Comment options

@maxcountryman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants