mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
Redis-rb doesn't have a close method
This commit is contained in:
parent
7e0ec9e3b1
commit
b8c058ed47
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ will work.
|
|||
|
||||
```ruby
|
||||
cp = ConnectionPool.new { Redis.new }
|
||||
cp.shutdown { |conn| conn.close }
|
||||
cp.shutdown { |conn| conn.quit }
|
||||
```
|
||||
|
||||
Shutting down a connection pool will block until all connections are checked in and closed.
|
||||
|
|
Loading…
Reference in a new issue