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