Class: Barley::Cache
- Inherits:
-
Object
- Object
- Barley::Cache
- Defined in:
- lib/barley/cache.rb
Instance Method Summary collapse
- #delete(key) ⇒ Object
- #fetch(key, options = {}, &block) ⇒ Object
-
#initialize ⇒ Cache
constructor
A new instance of Cache.
Constructor Details
Instance Method Details
#delete(key) ⇒ Object
17 18 19 |
# File 'lib/barley/cache.rb', line 17 def delete(key) @cache_store.delete(key) end |
#fetch(key, options = {}, &block) ⇒ Object
13 14 15 |
# File 'lib/barley/cache.rb', line 13 def fetch(key, = {}, &block) @cache_store.fetch(key, , &block) end |