instance method
clear
Ruby on Rails 4.2.9
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 109
def clear(options = nil)
@data.flush_all
rescue Dalli::DalliError => e
logger.error("DalliError (#{e}): #{e.message}") if logger
nil
end
Defined in activesupport/lib/active_support/cache/mem_cache_store.rb line 109
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemCacheStore