lib/redis_cluster.rb in redis_cluster-0.2.7 vs lib/redis_cluster.rb in redis_cluster-0.2.8

- old
+ new

@@ -6,11 +6,11 @@ class << self # startup_hosts examples: # [{host: 'xxx', port: 'xxx'}, {host: 'xxx', port: 'xxx'}, ...] # global_configs: - # now not used, options for later versions - def new(startup_hosts, *global_configs) + # options for redis: password, ... + def new(startup_hosts, global_configs = {}) @client = Client.new(startup_hosts, global_configs) end end