Class Rabl::CacheEngine
In: lib/rabl/cache_engine.rb
Parent: Object

Methods

fetch   read_multi   write  

Public Instance methods

Fetch given a key and options and a fallback block attempts to find the key in the cache and stores the block result in there if no key is found.

cache = Rabl::CacheEngine.new; cache.fetch("some_key") { "fallback data" }

[Validate]