pub async fn create_redis_connection(
con_name: &str,
config: DatabaseConfig,
) -> Result<ConnectionManager>
Expand description
Create a new Redis database connection from the given database config.
In case of reconnection issues, the connection will retry reconnection
number_of_retries
times, with an exponentially increasing delay, calculated as
rand(0 .. factor * (exponent_base ^ current-try))
.
Apply a maximum delay. No retry delay will be longer than this max_delay
.
The new connection will time out operations after response_timeout
has passed.
Each connection attempt to the server will time out after connection_timeout
.