[][src]Module reool::config

Configuration for RedisPool including a builder.

Connecting to a single node or multiple replicas

Connecting to a single node

Set the value connect_to_nodes to one node or explicitly set PoolMode::Single in which case the first of multiple node will be selected.

Connecting to a multiple nodes

Set the value connect_to_nodes to more than one nodes or explicitly set PoolMode::Multi if there is only a single node to connect to but you want to enforce the mechanics for a replica set pool.

Structs

Builder

A builder for a MultiNodePool

Config

A configuration for creating a MultiNodePool.

InitializationError

An initialization has failed

ParsePoolModeError

Enums

ActivationOrder

Defines the strategy by which idle connections are taken from the pool.

BackoffStrategy

A strategy for determining delays betwen retries

PoolMode

Determines which kind of pool to create.