aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2011-10-30 01:55:09 +0900
committerkennyj <kennyj@gmail.com>2011-10-30 01:55:09 +0900
commit7b65d12db5951682666a41fe864b53ad5ec510ac (patch)
treeddd293f300f4009beb24da3a3b2d524ed37b449a /activesupport/lib
parente886f97669d5aa072af7bb625f5e16635e187124 (diff)
downloadrails-7b65d12db5951682666a41fe864b53ad5ec510ac.tar.gz
rails-7b65d12db5951682666a41fe864b53ad5ec510ac.tar.bz2
rails-7b65d12db5951682666a41fe864b53ad5ec510ac.zip
fix a document for race_condition_ttl. ActiveSupport::Cache::MemoryCache isn't exist
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb
index 95d936b32f..b9cdd9c6b3 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -232,7 +232,7 @@ module ActiveSupport
# <tt>:race_condition_ttl</tt> does not play any role.
#
# # Set all values to expire after one minute.
- # cache = ActiveSupport::Cache::MemoryCache.new(:expires_in => 1.minute)
+ # cache = ActiveSupport::Cache::MemoryStore.new(:expires_in => 1.minute)
#
# cache.write("foo", "original value")
# val_1 = nil