lib/redis_failover/client.rb in redis_failover-0.9.7.1 vs lib/redis_failover/client.rb in redis_failover-0.9.7.2
- old
+ new
@@ -77,9 +77,17 @@
# @return [RedisFailover::Client]
def client(*args)
self
end
+ # Delegates to the underlying Redis client to fetch the location.
+ # This method always returns the location of the master.
+ #
+ # @return [String] the redis location
+ def location
+ dispatch(:client).location
+ end
+
# Specifies a callback to invoke when the current redis node list changes.
#
# @param [Proc] a callback with current master and slaves as arguments
#
# @example Usage