From 7b65d12db5951682666a41fe864b53ad5ec510ac Mon Sep 17 00:00:00 2001 From: kennyj Date: Sun, 30 Oct 2011 01:55:09 +0900 Subject: [PATCH] fix a document for race_condition_ttl. ActiveSupport::Cache::MemoryCache isn't exist --- activesupport/lib/active_support/cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index 95d936b32fb40..b9cdd9c6b3d30 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -232,7 +232,7 @@ def self.instrument # :race_condition_ttl 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