1
0
Fork 0
mirror of https://github.com/mperham/connection_pool synced 2023-03-27 23:22:21 -04:00
This commit is contained in:
Mike Perham 2018-06-04 13:05:22 -07:00
parent d9cdf05919
commit dd69ed71c8

View file

@ -87,13 +87,9 @@ Shutting down a connection pool will block until all connections are checked in
**Note that shutting down is completely optional**; Ruby's garbage collector will reclaim
unreferenced pools under normal circumstances.
## Current state
## Current State
There are several methods that returns information about pool.
1. `#size` - current size of the pool
2. `#available` - number of currently available connections
There are several methods that return information about a pool.
```ruby
cp = ConnectionPool.new(size: 10) { Redis.new }