diff options
author | Vipul A M <vipulnsward@gmail.com> | 2017-03-12 14:20:06 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-12 14:20:06 +0530 |
commit | 254b831edd113a00a8c660bfb10ebb56d42a9ca7 (patch) | |
tree | 2d42851be5ee1e1f70ac5b343e6c41c00e5b7f43 /activesupport/lib | |
parent | c186bf6b44af5021d59252b01e939efa1f4fe366 (diff) | |
parent | 355bdeb54e8e45a7cd351ab3b35354107bc1c093 (diff) | |
download | rails-254b831edd113a00a8c660bfb10ebb56d42a9ca7.tar.gz rails-254b831edd113a00a8c660bfb10ebb56d42a9ca7.tar.bz2 rails-254b831edd113a00a8c660bfb10ebb56d42a9ca7.zip |
Merge pull request #27051 from devonestes/adding-cache-clear-docs
Add missing documentation for MemoryStore#clear [ci skip]
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/cache/memory_store.rb | 2 |
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 fea072d91c..f2996a9c45 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 |