Module: Mrcr::Cache::Methods
- Defined in:
- lib/mrcr/cache.rb
Overview
Instance methods
Instance Method Summary collapse
-
#fetch(key, default = nil) { ... } ⇒ Object
Delegates call to the class-level method.
-
#fetch_or_store(key) { ... } ⇒ Object
Delegates call to the class-level method.
Instance Method Details
#fetch(key, default = nil) { ... } ⇒ Object
Delegates call to the class-level method
87 88 89 |
# File 'lib/mrcr/cache.rb', line 87 def fetch(key, default = nil) self.class.fetch(key, default) end |
#fetch_or_store(key) { ... } ⇒ Object
Delegates call to the class-level method
76 77 78 |
# File 'lib/mrcr/cache.rb', line 76 def fetch_or_store(key, &block) self.class.fetch_or_store(key, &block) end |