-
Hi! Hoping someone has some experience in this area an knows the correct method of multiplexing a Redis connection in Actix Web. I'm currently using Anyway just hoping someone could guide me on where or not I should be making a struct to hold the MutltiplexedConnection in an Arc, and then cloning the data out of the struct (instead of what I'm doing putting the connection in there directly), or at least whether my thinking is correct about |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Key point from the
I'd probably still recommend putting the |
Beta Was this translation helpful? Give feedback.
ThinData
is for database pools and other types which share state internally, via Arc or whatever other method.Key point from the
ThinData
docs:I'd probably still recommend putting the
redis::Client
in app data and not the connection itself, but usingclient.get_multiplexed_async_connection().await
when you need it.