Module: MethodCacher::Base::InstanceMethods
- Defined in:
- lib/method_cacher/base.rb
Instance Method Summary collapse
-
#clear_method_cache ⇒ Object
A helper that clears the cache for all the cached methods of this object that are argument-less.
Instance Method Details
#clear_method_cache ⇒ Object
A helper that clears the cache for all the cached methods of this object that are argument-less.
146 147 148 |
# File 'lib/method_cacher/base.rb', line 146 def clear_method_cache self.class.cached_methods.each { |method_name| MethodCacher.config.caching_strategy.delete(cached_method_key(method_name)) } end |