class
Session::ConnectionPool
- Session::ConnectionPool
- Reference
- Object
Overview
Simple connection pool for Redis connections
Defined in:
connection_pool.crConstructors
Instance Method Summary
- #available : Int32
-
#checkin(conn : Redis) : Nil
Return a connection to the pool
-
#checkout : Redis
Check out a connection from the pool
- #config : ConnectionPoolConfig
-
#healthy? : Bool
Check if pool is healthy (at least one connection works)
-
#shutdown : Nil
Close all connections and shutdown the pool
- #size : Int32
-
#stats : NamedTuple(size: Int32, available: Int32, in_use: Int32)
Get pool statistics
-
#with_connection(&block : Redis -> T) : T forall T
Execute a block with a pooled connection