Module: Rack::AcornCache::CacheReader
- Defined in:
- lib/acorn_cache/cache_reader.rb
Class Method Summary collapse
Class Method Details
.read(cache_key) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/acorn_cache/cache_reader.rb', line 5 def self.read(cache_key) response = storage.get(cache_key) return false unless response response_hash = JSON.parse(response) CachedResponse.new(response_hash) end |