Module: SecondLevelCache::ActiveRecord::Persistence

Extended by:
ActiveSupport::Concern
Defined in:
lib/second_level_cache/active_record/persistence.rb

Instance Method Summary collapse

Instance Method Details

#reload_with_second_level_cache(options = nil) ⇒ Object



20
21
22
23
# File 'lib/second_level_cache/active_record/persistence.rb', line 20

def reload_with_second_level_cache(options = nil)
  expire_second_level_cache
  reload_without_second_level_cache(options)
end

#touch_with_second_level_cache(name = nil) ⇒ Object



25
26
27
28
# File 'lib/second_level_cache/active_record/persistence.rb', line 25

def touch_with_second_level_cache(name = nil)
  expire_second_level_cache
  touch_without_second_level_cache(name)
end

#update_column_with_second_level_cache(name, value) ⇒ Object



15
16
17
18
# File 'lib/second_level_cache/active_record/persistence.rb', line 15

def update_column_with_second_level_cache(name, value)
  expire_second_level_cache
  update_column_without_second_level_cache(name, value)
end