Method: Platform::Cache.fetch

Defined in:
lib/platform/cache.rb

.fetch(key, options = {}) ⇒ Object



46
47
48
49
50
51
# File 'lib/platform/cache.rb', line 46

def self.fetch(key, options = {})
  return yield unless enabled?
  cache.fetch(versioned_key(key), options) do 
    yield
  end
end