Method: Cash::Buffered#get

Defined in:
lib/cash/buffered.rb

#get(key, *options) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/cash/buffered.rb', line 26

def get(key, *options)
  if @buffer.has_key?(key)
    @buffer[key]
  else
    @buffer[key] = @cache.get(key, *options)
  end
end