aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache/memory_store.rb
diff options
context:
space:
mode:
authorMatt Stopa <matthew.p.stopa@gmail.com>2013-07-10 00:02:21 -0600
committerMatt Stopa <matthew.p.stopa@gmail.com>2013-07-10 00:02:21 -0600
commitd06a98b7d9d3a8717cbe42ad506a21dc48613149 (patch)
tree8e33829305a8af81227b58593ff5c05c075e65fb /activesupport/lib/active_support/cache/memory_store.rb
parentb50bd49aa2d2d01ab05a58674557987386b13774 (diff)
downloadrails-d06a98b7d9d3a8717cbe42ad506a21dc48613149.tar.gz
rails-d06a98b7d9d3a8717cbe42ad506a21dc48613149.tar.bz2
rails-d06a98b7d9d3a8717cbe42ad506a21dc48613149.zip
Add documentation for #clear on certain Store classes
[ci skip
Diffstat (limited to 'activesupport/lib/active_support/cache/memory_store.rb')
-rw-r--r--activesupport/lib/active_support/cache/memory_store.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/cache/memory_store.rb b/activesupport/lib/active_support/cache/memory_store.rb
index 4d26fb7e42..e58b7be9f8 100644
--- a/activesupport/lib/active_support/cache/memory_store.rb
+++ b/activesupport/lib/active_support/cache/memory_store.rb
@@ -36,6 +36,7 @@ module ActiveSupport
end
end
+ # Premptively iterates through all stored keys and removes the ones which have expired.
def cleanup(options = nil)
options = merged_options(options)
instrument(:cleanup, :size => @data.size) do