instance method
clear
Ruby on Rails 5.0.7.2
Signature
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 137
def clear(options = nil)
rescue_error_with(nil) { @data.flush_all }
end
Defined in activesupport/lib/active_support/cache/mem_cache_store.rb line 137
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemCacheStore