aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorDevon Estes <devon.c.estes@gmail.com>2016-11-15 13:39:27 +0100
committerDevon Estes <devon.c.estes@gmail.com>2016-11-15 14:23:29 +0100
commit355bdeb54e8e45a7cd351ab3b35354107bc1c093 (patch)
tree44318dc8cd4753ec761f9f8465ce7f2f07e32519 /activesupport
parent3a558aa2bc8ce3834ee79ff3346bcf5d7debbbd0 (diff)
downloadrails-355bdeb54e8e45a7cd351ab3b35354107bc1c093.tar.gz
rails-355bdeb54e8e45a7cd351ab3b35354107bc1c093.tar.bz2
rails-355bdeb54e8e45a7cd351ab3b35354107bc1c093.zip
Add missing documentation for MemoryStore#clear [ci skip]
We were missing some form of documentation for this method, so I've gone ahead and added some!
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/cache/memory_store.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/cache/memory_store.rb b/activesupport/lib/active_support/cache/memory_store.rb
index 968e72d765..3323e4edc9 100644
--- a/activesupport/lib/active_support/cache/memory_store.rb
+++ b/activesupport/lib/active_support/cache/memory_store.rb
@@ -28,6 +28,7 @@ module ActiveSupport
@pruning = false
end
+ # Delete all data stored in a given cache store.
def clear(options = nil)
synchronize do
@data.clear
@@ -83,6 +84,7 @@ module ActiveSupport
modify_value(name, -amount, options)
end
+ # Deletes cache entires if the cache key matches a given pattern
def delete_matched(matcher, options = nil)
options = merged_options(options)
instrument(:delete_matched, matcher.inspect) do