Module: Dalli::Protocol

Defined in:
lib/dalli/protocol.rb,
lib/dalli/protocol/base.rb,
lib/dalli/protocol/meta.rb,
lib/dalli/protocol/ttl_sanitizer.rb,
lib/dalli/protocol/key_regularizer.rb,
lib/dalli/protocol/response_buffer.rb,
lib/dalli/protocol/value_compressor.rb,
lib/dalli/protocol/value_marshaller.rb,
lib/dalli/protocol/value_serializer.rb,
lib/dalli/protocol/request_formatter.rb,
lib/dalli/protocol/string_marshaller.rb,
lib/dalli/protocol/connection_manager.rb,
lib/dalli/protocol/response_processor.rb,
lib/dalli/protocol/server_config_parser.rb

Defined Under Namespace

Classes: Base, ConnectionManager, Meta, ResponseBuffer, ServerConfigParser, StringMarshaller, TtlSanitizer, ValueCompressor, ValueMarshaller, ValueSerializer

Constant Summary collapse

NOT_FOUND =

Preserved for backwards compatibility. Should be removed in 4.0

::Dalli::NOT_FOUND
TIMEOUT_ERRORS =

Ruby 3.2 raises IO::TimeoutError on blocking reads/writes, but it is not defined in earlier Ruby versions.

if defined?(IO::TimeoutError)
  [Timeout::Error, IO::TimeoutError]
else
  [Timeout::Error]
end
SSL_ERRORS =

SSL errors that occur during read/write operations (not during initial handshake) should trigger reconnection. These indicate transient network issues, not configuration problems.

if defined?(OpenSSL::SSL::SSLError)
  [OpenSSL::SSL::SSLError]
else
  []
end