Method: Tml::Cache#fetch

Defined in:
lib/tml/cache.rb

#fetch(key, opts = {}) ⇒ Object

fetches key from cache



114
115
116
117
# File 'lib/tml/cache.rb', line 114

def fetch(key, opts = {})
  return nil unless block_given?
  yield
end