Method: Dalli::Protocol::ValueMarshaller#initialize

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

#initialize(client_options) ⇒ ValueMarshaller

Returns a new instance of ValueMarshaller.



25
26
27
28
29
30
31
# File 'lib/dalli/protocol/value_marshaller.rb', line 25

def initialize(client_options)
  @value_serializer = ValueSerializer.new(client_options)
  @value_compressor = ValueCompressor.new(client_options)

  @marshal_options =
    DEFAULTS.merge(client_options.select { |k, _| OPTIONS.include?(k) })
end