instance method
cleanup
Ruby on Rails 3.1.12
Since v3.0.20Signature
cleanup(options = nil)
No documentation comment.
Parameters
-
optionsopt = nil
Source
# File activesupport/lib/active_support/cache/memory_store.rb, line 39
def cleanup(options = nil)
options = merged_options(options)
instrument(:cleanup, :size => @data.size) do
keys = synchronize{ @data.keys }
keys.each do |key|
entry = @data[key]
delete_entry(key, options) if entry && entry.expired?
end
end
end
Defined in activesupport/lib/active_support/cache/memory_store.rb line 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemoryStore