Method: Dalli::Protocol::Meta::ResponseProcessor#meta_get_with_value

Defined in:
lib/dalli/protocol/meta/response_processor.rb

#meta_get_with_value(cache_nils: false) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/dalli/protocol/meta/response_processor.rb', line 30

def meta_get_with_value(cache_nils: false)
  tokens = error_on_unexpected!([VA, EN, HD])
  return cache_nils ? ::Dalli::NOT_FOUND : nil if tokens.first == EN
  return true unless tokens.first == VA

  @value_marshaller.retrieve(read_line, bitflags_from_tokens(tokens))
end