lib/redis/distributed_store.rb in redis-store-1.9.2 vs lib/redis/distributed_store.rb in redis-store-1.10.0

- old
+ new

@@ -5,9 +5,11 @@ @@timeout = 5 attr_reader :ring def initialize(addresses, options = {}) _extend_namespace options + # `@tag` introduced in `redis-rb` 5.0 + @tag = options[:tag] || /^\{(.+?)\}/ @ring = options[:ring] || Redis::HashRing.new([], options[:replicas] || Redis::HashRing::POINTS_PER_SERVER) addresses.each do |address| @ring.add_node(::Redis::Store.new _merge_options(address, options)) end