Class: Dalli::Protocol::Binary

Inherits:
Base
  • Object
show all
Includes:
SaslAuthentication
Defined in:
lib/dalli/protocol/binary.rb,
lib/dalli/protocol/binary/response_header.rb,
lib/dalli/protocol/binary/request_formatter.rb,
lib/dalli/protocol/binary/response_processor.rb,
lib/dalli/protocol/binary/sasl_authentication.rb

Overview

Access point for a single Memcached server, accessed via Memcached’s binary protocol. Contains logic for managing connection state to the server (retries, etc), formatting requests to the server, and unpacking responses.

Defined Under Namespace

Modules: SaslAuthentication Classes: RequestFormatter, ResponseHeader, ResponseProcessor

Constant Summary

Constants included from SaslAuthentication

SaslAuthentication::PLAIN_AUTH

Instance Attribute Summary

Attributes inherited from Base

#options, #weight

Instance Method Summary collapse

Methods included from SaslAuthentication

#authenticate_connection, #authenticate_with_plain, #perform_auth_negotiation, #supported_mechanisms!

Methods inherited from Base

#alive?, #initialize, #lock!, #password, #pipeline_abort, #pipeline_complete?, #pipeline_next_responses, #pipeline_response_setup, #quiet?, #request, #require_auth?, #unlock!, #username

Constructor Details

This class inherits a constructor from Dalli::Protocol::Base

Instance Method Details

#response_processorObject



15
16
17
# File 'lib/dalli/protocol/binary.rb', line 15

def response_processor
  @response_processor ||= ResponseProcessor.new(@connection_manager, @value_marshaller)
end