module ArCache::ActiveRecord::ConnectionAdapters::NullTransaction

Public Instance Methods

delete_ar_cache_primary_keys(keys, table) click to toggle source
# File lib/ar_cache/active_record/connection_adapters/abstract/transaction.rb, line 7
def delete_ar_cache_primary_keys(keys, table)
  handle_ar_cache_primary_keys(keys) unless table.disabled?
end
handle_ar_cache_primary_keys(keys) click to toggle source
# File lib/ar_cache/active_record/connection_adapters/abstract/transaction.rb, line 15
def handle_ar_cache_primary_keys(keys)
  if ArCache::Configuration.cache_lock?
    keys.each { |k| ArCache.lock_key(k) }
  else
    ArCache.delete_multi(keys)
  end
end
update_ar_cache_table(table) click to toggle source
# File lib/ar_cache/active_record/connection_adapters/abstract/transaction.rb, line 11
def update_ar_cache_table(table)
  table.update_cache
end