instance method
clear
Ruby on Rails 5.2.8.1
Since v3.0.20Signature
clear(options = nil)
Clears 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 515
def clear(options = nil)
raise NotImplementedError.new("#{self.class.name} does not support clear")
end
Defined in activesupport/lib/active_support/cache.rb line 515
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store