Method: HTTParty::Icebox::Store::MemoryStore#get

Defined in:
lib/imdb_party/httparty_icebox.rb

#get(key) ⇒ Object



180
181
182
183
184
# File 'lib/imdb_party/httparty_icebox.rb', line 180

def get(key)
  data = @store[key][1]
  Cache.logger.info("Cache: #{data.nil? ? "miss" : "hit"} (#{key})")
  data
end