Closed byteallen closed 7 years ago
2.2.4 :001 > $redis = ConnectionPool.wrap { Redis.new } NameError: uninitialized constant ConnectionPool from (irb):1 from /Users/zhi/.rvm/rubies/ruby-2.2.4/bin/irb:11:in `<main>'
I get this error. I think options can be empty.
You should really size the pool when wrapping a connection.
ConnectionPool.wrap(size: 5) { Redis.new }
The idea is that you can replace wrap with new once you've ported your code to use with.
wrap
new
with
I get this error. I think options can be empty.