aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/active_support/cache/mem_cache_store.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/cache/mem_cache_store.rb b/activesupport/lib/active_support/cache/mem_cache_store.rb
index 71b28ca6f5..88e324aa3a 100644
--- a/activesupport/lib/active_support/cache/mem_cache_store.rb
+++ b/activesupport/lib/active_support/cache/mem_cache_store.rb
@@ -55,6 +55,10 @@ module ActiveSupport
raise "Not supported by Memcache"
end
+ def clear
+ @data.flush_all
+ end
+
private
def expires_in(options)
(options && options[:expires_in]) || 0