Redis Documentation Beta

Structure Redis​Configuration.​Pool​Options

public struct PoolOptions 

Member Of

RedisConfiguration

Initializers

init(maximum​Connection​Count:​minimum​Connection​Count:​connection​Backoff​Factor:​initial​Connection​Backoff​Delay:​connection​Retry​Timeout:​)

public init(
            maximumConnectionCount: RedisConnectionPoolSize = .maximumActiveConnections(2),
            minimumConnectionCount: Int = 0,
            connectionBackoffFactor: Float32 = 2,
            initialConnectionBackoffDelay: TimeAmount = .milliseconds(100),
            connectionRetryTimeout: TimeAmount? = nil
        ) 

Properties

maximum​Connection​Count

public var maximumConnectionCount: RedisConnectionPoolSize

minimum​Connection​Count

public var minimumConnectionCount: Int

connection​Backoff​Factor

public var connectionBackoffFactor: Float32

initial​Connection​Backoff​Delay

public var initialConnectionBackoffDelay: TimeAmount

connection​Retry​Timeout

public var connectionRetryTimeout: TimeAmount?