Module: CacheBack::WriteMixin::ClassMethods
- Defined in:
- lib/cache_back/write_mixin.rb
Instance Method Summary collapse
Instance Method Details
#remove_from_cache_back(ids) ⇒ Object
4 5 6 7 8 |
# File 'lib/cache_back/write_mixin.rb', line 4 def remove_from_cache_back(ids) Array(ids).each do |id| CacheBack.cache.delete(cache_back_key_for_id(id)) end end |
#update_counters_with_cache_back_clearing(*args) ⇒ Object
10 11 12 13 |
# File 'lib/cache_back/write_mixin.rb', line 10 def update_counters_with_cache_back_clearing(*args) remove_from_cache_back(args[0]) update_counters_without_cache_back_clearing(*args) end |