instance method
clear
Ruby on Rails 3.0.20
Since v2.2.3Signature
clear(options = nil)
No documentation comment.
Parameters
-
optionsopt = nil
Source
# File activesupport/lib/active_support/cache/memory_store.rb, line 31
def clear(options = nil)
synchronize do
@data.clear
@key_access.clear
@cache_size = 0
end
end
Defined in activesupport/lib/active_support/cache/memory_store.rb line 31
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemoryStore