lib/redis_cluster/node.rb in redis_cluster-0.3.0 vs lib/redis_cluster/node.rb in redis_cluster-0.3.1

- old
+ new

@@ -1,8 +1,10 @@ module RedisCluster class Node + attr_accessor :options + # slots is a range array: [1..100, 300..500] attr_accessor :slots # # basic requires: @@ -33,10 +35,10 @@ def execute(method, args, &block) connection.public_send(method, *args, &block) end def connection - @connection ||= self.class.redis(@options) + @connection ||= self.class.redis(options) end def self.redis(options) extra_options = {timeout: Configuration::DEFAULT_TIMEOUT, driver: 'hiredis'.freeze} ::Redis.new(options.merge(extra_options))