I have a single threaded, non-async server, that is connecting to a Redis database using the officially recommended
redis-rs crate. As far as I can see there is no mechanism to achieve, what I need: holding a connection as long as it exists even over multiple requests to my server.
Also a single request to my server might start multiple Redis requests. Between all of these requests the redis connection could be interrupted and I'd really like to start at least one try to reconnect before failing the request.
What would a good way to fulfill my requirements? The best I can think of is writing a wrapper around the redis-rs objects myself. Is there a better way?