lib/redis/distributed_store.rb in redis-store-1.1.3 vs lib/redis/distributed_store.rb in redis-store-1.1.4

- old
+ new

@@ -7,10 +7,11 @@ def initialize(addresses, options = { }) nodes = addresses.map do |address| ::Redis::Store.new _merge_options(address, options) end + _extend_namespace options @ring = Redis::HashRing.new nodes end def nodes @@ -38,9 +39,12 @@ @namespace = options[:namespace] extend ::Redis::Store::Namespace if @namespace end def _merge_options(address, options) - address.merge(:timeout => options[:timeout] || @@timeout) + address.merge({ + :timeout => options[:timeout] || @@timeout, + :namespace => options[:namespace] + }) end end end