Method: Dalli::Protocol::Binary#initialize

Defined in:
lib/dalli/protocol/binary.rb

#initialize(attribs, options = {}) ⇒ Binary

Returns a new instance of Binary.



43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/dalli/protocol/binary.rb', line 43

def initialize(attribs, options = {})
  @hostname, @port, @weight, @socket_type = parse_hostname(attribs)
  @fail_count = 0
  @down_at = nil
  @last_down_at = nil
  @options = DEFAULTS.merge(options)
  @sock = nil
  @msg = nil
  @error = nil
  @pid = nil
  @inprogress = nil
end