Module: ForgetMeNot::Cacheable::ClassMethods
- Defined in:
- lib/forget-me-not/cacheable.rb
Instance Method Summary collapse
Instance Method Details
#cache_results(*methods) ⇒ Object
14 15 16 17 |
# File 'lib/forget-me-not/cacheable.rb', line 14 def cache_results(*methods) = methods.last.is_a?(Hash) ? methods.pop : {} methods.each { |m| cache_method(m, ) } end |
#cache_warm(*args) ⇒ Object
19 20 21 |
# File 'lib/forget-me-not/cacheable.rb', line 19 def cache_warm(*args) # Classes can call the methods necessary to warm the cache end |