Method: Allgood::CacheStore#read

Defined in:
lib/allgood/cache_store.rb

#read(key) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/allgood/cache_store.rb', line 13

def read(key)
  if rails_cache_available?
    Rails.cache.read(key)
  else
    @memory_store[key]
  end
end