Method: Dalli::Protocol::Binary::ResponseProcessor#get
- Defined in:
- lib/dalli/protocol/binary/response_processor.rb
#get(cache_nils: false) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/dalli/protocol/binary/response_processor.rb', line 69 def get(cache_nils: false) resp_header, body = read_response return false if resp_header.not_stored? # Not stored, normal status for add operation return cache_nils ? ::Dalli::NOT_FOUND : nil if resp_header.not_found? raise_on_not_ok!(resp_header) return true unless body unpack_response_body(resp_header, body, true).last end |