Redis Documentation

Structure Redis​Configuration

public struct RedisConfiguration  

Configuration for connecting to a Redis instance

Nested Types

RedisConfiguration.PoolOptions

Nested Type Aliases

Validation​Error

public typealias ValidationError = RedisConnection.Configuration.ValidationError

Initializers

init(url:​pool:​)

public init(url string: String, pool: PoolOptions = .init()) throws  

init(url:​pool:​)

public init(url: URL, pool: PoolOptions = .init()) throws  

init(hostname:​port:​password:​database:​pool:​)

public init(
        hostname: String,
        port: Int = RedisConnection.Configuration.defaultPort,
        password: String? = nil,
        database: Int? = nil,
        pool: PoolOptions = .init()
    ) throws  

init(server​Addresses:​password:​database:​pool:​)

public init(
        serverAddresses: [SocketAddress],
        password: String? = nil,
        database: Int? = nil,
        pool: PoolOptions = .init()
    ) throws  

Properties

server​Addresses

public var serverAddresses: [SocketAddress] 

password

public var password: String? 

database

public var database: Int? 

pool

public var pool: PoolOptions