module Kasket::WriteMixin::ClassMethods
Public Instance Methods
remove_from_kasket(ids)
click to toggle source
# File lib/kasket/write_mixin.rb, line 5 def remove_from_kasket(ids) Array(ids).each do |id| Kasket.cache.delete(kasket_key_for_id(id)) end end
transaction_with_kasket_disabled(*args) { || ... }
click to toggle source
# File lib/kasket/write_mixin.rb, line 16 def transaction_with_kasket_disabled(*args) without_kasket do transaction_without_kasket_disabled(*args) { yield } end end
update_counters_with_kasket_clearing(*args)
click to toggle source
# File lib/kasket/write_mixin.rb, line 11 def update_counters_with_kasket_clearing(*args) remove_from_kasket(args[0]) update_counters_without_kasket_clearing(*args) end