README.md in redic-1.0.1 vs README.md in redic-1.1.0
- old
+ new
@@ -43,11 +43,11 @@
It is also possible to configure a timeout for the connection. The
default timeout is 10 seconds.
```ruby
# Timeout expressed in microseconds.
-redis = Redic.new(timeout: 2_000_000)
+redis = Redic.new(REDIS_URL, 2_000_000)
redis.timeout == 2_000_000 #=> true
```
Here's one final example using both a Redis URL and a timeout:
@@ -56,10 +56,10 @@
# variable. Use `fetch` to retrieve values that must be present,
# as it raises an error if the value is not found.
REDIS_URL = ENV.fetch("REDIS_URL")
REDIS_TIMEOUT = ENV.fetch("REDIS_TIMEOUT")
-redis = Redic.new(REDIS_URL, timeout: REDIS_TIMEOUT)
+redis = Redic.new(REDIS_URL, REDIS_TIMEOUT)
```
## Differences with redis-rb
Redic uses [hiredis][hiredis] for the connection and for parsing