README.md in nogara-redis_failover-0.8.9 vs README.md in nogara-redis_failover-0.8.10

- old
+ new

@@ -127,9 +127,19 @@ :db - db to use for redis nodes (optional) :namespace - namespace for redis nodes (optional) :logger - logger override (optional) :retry_failure - indicate if failures should be retried (default true) :max_retries - max retries for a failure (default 3) + :safe_mode - indicates if safe mode is used or not (default true) + :master_only - indicates if only redis master is used (default false) + +The RedisFailover::Client also supports a custom callback that will be invoked whenever the list of redis clients changes. Example usage: + + RedisFailover::Client.new(:zkservers => 'localhost:2181,localhost:2182,localhost:2183') do |client| + client.on_node_change do |master, slaves| + logger.info("Nodes changed! master: #{master}, slaves: #{slaves}") + end + end ## Manual Failover Manual failover can be initiated via RedisFailover::Client#manual_failover. This schedules a manual failover with the currently active Node Manager. Once the Node Manager receives the request, it will either failover to the specific