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