Skip to content

Commit

Permalink
README: Use API Redis.new in example
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle authored and mperham committed May 11, 2020
1 parent 8671abd commit 9c15ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ You can use `ConnectionPool::Wrapper` to wrap a single global connection,
making it easier to migrate existing connection code over time:

``` ruby
$redis = ConnectionPool::Wrapper.new(size: 5, timeout: 3) { Redis.connect }
$redis = ConnectionPool::Wrapper.new(size: 5, timeout: 3) { Redis.new }
$redis.sadd('foo', 1)
$redis.smembers('foo')
```
Expand Down

0 comments on commit 9c15ab6

Please sign in to comment.