Class: ActiveSupport::Cache::ActiveRecordStore

Inherits:
Store
  • Object
show all
Defined in:
lib/active_support/cache/active_record_store.rb

Instance Method Summary collapse

Instance Method Details

#cleanup(options = nil) ⇒ Object



7
8
9
# File 'lib/active_support/cache/active_record_store.rb', line 7

def cleanup(options = nil)
  CacheEntry.expired.delete_all
end

#clear(options = nil) ⇒ Object



11
12
13
# File 'lib/active_support/cache/active_record_store.rb', line 11

def clear(options = nil)
  CacheEntry.delete_all
end