instance method
clear
Ruby on Rails 4.2.9
Since v3.0.20Signature
clear(options = nil)
Clear the entire cache. Be careful with this method since it could affect other processes if shared cache is being used.
The options hash is passed to the underlying cache implementation.
All implementations may not support this method.
Parameters
-
optionsopt = nil
Source
# File activesupport/lib/active_support/cache.rb, line 460
def clear(options = nil)
raise NotImplementedError.new("#{self.class.name} does not support clear")
end
Defined in activesupport/lib/active_support/cache.rb line 460
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store