1
0
Fork 0
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:
Anthony Ross 2015-08-05 15:03:35 -04:00
parent 7e0ec9e3b1
commit b8c058ed47

View file

@ -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.