lib/redis_failover/node.rb in redis_failover-0.5.4 vs lib/redis_failover/node.rb in redis_failover-0.6.0

- old
+ new

@@ -1,9 +1,14 @@ module RedisFailover - # Represents a redis node (master or slave). + # Represents a redis node (master or slave). Instances of this class + # are used by the NodeManager and NodeWatcher to manipulate real redis + # servers. class Node include Util + # Maximum amount of time given for any redis operation to complete. + # If a redis operation doesn't complete in the alotted time, a + # NodeUnavailableError will be raised. MAX_OP_WAIT_TIME = 5 attr_reader :host, :port def initialize(options = {})