RedisConnectionPoolSize

public enum RedisConnectionPoolSize

RedisConnectionPoolSize controls how the maximum number of connections in a pool are interpreted.

  • The pool will allow no more than this number of connections to be “active” (that is, connecting, in-use, or pooled) at any one time. This will force possible future users of new connections to wait until a currently active connection becomes available by being returned to the pool, but provides a hard upper limit on concurrency.

    Declaration

    Swift

    case maximumActiveConnections(Int)
  • The pool will only store up to this number of connections that are not currently in-use. However, if the pool is asked for more connections at one time than this number, it will create new connections to serve those waiting for connections. These “extra” connections will not be preserved: while they will be used to satisfy those waiting for new connections if needed, they will not be preserved in the pool if load drops low enough. This does not provide a hard upper bound on concurrency, but does provide an upper bound on low-level load.

    Declaration

    Swift

    case maximumPreservedConnections(Int)