aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-10-29 17:53:00 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2011-10-29 17:53:00 -0700
commit8ef1bd9b293678b3d9c07a3f63384781df78b6ad (patch)
treeeb7cfc41da1276abb66f446827bfc9c3e75cba6e /activesupport/lib
parenteabda416b7c66f3b8d03237e7334bd2d14ff9190 (diff)
parent7b65d12db5951682666a41fe864b53ad5ec510ac (diff)
downloadrails-8ef1bd9b293678b3d9c07a3f63384781df78b6ad.tar.gz
rails-8ef1bd9b293678b3d9c07a3f63384781df78b6ad.tar.bz2
rails-8ef1bd9b293678b3d9c07a3f63384781df78b6ad.zip
Merge pull request #3463 from kennyj/fix_document_for_cache
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 8cb74b2a86..8aefda858d 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -230,7 +230,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