instance method
cleanup
Ruby on Rails 3.0.20
Since v3.0.20Signature
cleanup(options = nil)
No documentation comment.
Parameters
-
optionsopt = nil
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 27
def cleanup(options = nil)
options = merged_options(options)
each_key(options) do |key|
entry = read_entry(key, options)
delete_entry(key, options) if entry && entry.expired?
end
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 27
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore