diff --git a/activesupport/lib/active_support/cache/memory_store.rb b/activesupport/lib/active_support/cache/memory_store.rb index e0aba6b19a063..4872e025cd307 100644 --- a/activesupport/lib/active_support/cache/memory_store.rb +++ b/activesupport/lib/active_support/cache/memory_store.rb @@ -24,6 +24,10 @@ def delete_matched(matcher, options = nil) super @data.delete_if { |k,v| k =~ matcher } end + + def clear + @data.clear + end end end end \ No newline at end of file