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, = {}) return yield unless enabled? cache.fetch(versioned_key(key), ) do yield end end |