lib/upperkut/redis_pool.rb in upperkut-0.7.2 vs lib/upperkut/redis_pool.rb in upperkut-0.7.4
- old
+ new
@@ -6,15 +6,15 @@
DEFAULT_OPTIONS = {
pool_timeout: 1, # pool related option
size: 2, # pool related option
connect_timeout: 0.2,
read_timeout: 5.0,
- write_timeout: 0.5,
- url: ENV['REDIS_URL']
+ write_timeout: 0.5
}.freeze
def initialize(options)
- @options = DEFAULT_OPTIONS.merge(options)
+ @options = DEFAULT_OPTIONS.merge(url: ENV['REDIS_URL'])
+ .merge(options)
# Extract pool related options
@size = @options.delete(:size)
@pool_timeout = @options.delete(:pool_timeout)
end