aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorTobias Lütke <tobi@jadedpixel.com>2008-04-29 15:28:24 -0400
committerTobias Lütke <tobi@jadedpixel.com>2008-04-29 15:28:24 -0400
commit09517e3aeadba204d5b0b8c45a03e8084c4fc0b6 (patch)
tree9b59fd849dd5b88e388adfa97aff55ad1e6b032c /activesupport
parentfef82759ff97692470496905951882a0aab49d5b (diff)
downloadrails-09517e3aeadba204d5b0b8c45a03e8084c4fc0b6.tar.gz
rails-09517e3aeadba204d5b0b8c45a03e8084c4fc0b6.tar.bz2
rails-09517e3aeadba204d5b0b8c45a03e8084c4fc0b6.zip
Allow access to mem_cache_store's stats hash
Diffstat (limited to 'activesupport')
-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 15e2df13b3..bfe7e2ccf3 100644
--- a/activesupport/lib/active_support/cache/mem_cache_store.rb
+++ b/activesupport/lib/active_support/cache/mem_cache_store.rb
@@ -75,6 +75,10 @@ module ActiveSupport
def clear
@data.flush_all
+ end
+
+ def stats
+ @data.stats
end
private