Module: CacheUtils::Model
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/cache_utils/model.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#purge_cache ⇒ Object
15 16 17 |
# File 'lib/cache_utils/model.rb', line 15 def purge_cache Rails.cache.data.del(*(Rails.cache.data.keys(cache_key) + [self.class.cache_key])) end |