class

Session::ConnectionPool

Inherits Reference < Object

Simple connection pool for Redis connections

Constructors

new(config : ConnectionPoolConfig = ConnectionPoolConfig.new)
Source

Instance methods

available
Source
checkin(conn : Redis) : Nil

Return a connection to the pool

Source
checkout

Check out a connection from the pool

Source
config
Source
healthy?

Check if pool is healthy (at least one connection works)

Source
shutdown

Close all connections and shutdown the pool

Source
size
Source
stats

Get pool statistics

Source
with_connection

Execute a block with a pooled connection

Source