instance method
clear
Ruby on Rails 6.0.6
Since v2.2.3Signature
clear(options = nil)
Clear the entire cache on all memcached servers. This method should be used with care when shared cache is being used.
Parameters
-
optionsopt = nil
Source
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 126
def clear(options = nil)
rescue_error_with(nil) { @data.with { |c| c.flush_all } }
end
Defined in activesupport/lib/active_support/cache/mem_cache_store.rb line 126
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemCacheStore