Simple connection pool for Redis connections
Constructors
new(config : ConnectionPoolConfig = ConnectionPoolConfig.new)
SourceInstance methods
checkin(conn :
Redis) :
Nil Return a connection to the pool
Sourcecheckout
Check out a connection from the pool
Sourcehealthy?
Check if pool is healthy (at least one connection works)
Sourceshutdown
Close all connections and shutdown the pool
Sourcewith_connection
Execute a block with a pooled connection
Source