Method: ActiveSupport::Cache::MemCacheStore#clear
- Defined in:
- activesupport/lib/active_support/cache/mem_cache_store.rb
#clear(options = nil) ⇒ Object
Clear the entire cache on all memcached servers. This method should be used with care when shared cache is being used.
171 172 173 |
# File 'activesupport/lib/active_support/cache/mem_cache_store.rb', line 171 def clear( = nil) rescue_error_with(nil) { @data.with { |c| c.flush_all } } end |