# File lib/active_support/vendor/memcache-client-1.5.0/memcache.rb, line 749 def initialize(memcache, host, port = DEFAULT_PORT, weight = DEFAULT_WEIGHT) raise ArgumentError, "No host specified" if host.nil? or host.empty? raise ArgumentError, "No port specified" if port.nil? or port.to_i.zero? @memcache = memcache @host = host @port = port.to_i @weight = weight.to_i @multithread = @memcache.multithread @mutex = Mutex.new @sock = nil @retry = nil @status = 'NOT CONNECTED' end