diff options
author | kennyj <kennyj@gmail.com> | 2011-10-30 01:55:09 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2011-10-30 01:55:09 +0900 |
commit | 7b65d12db5951682666a41fe864b53ad5ec510ac (patch) | |
tree | ddd293f300f4009beb24da3a3b2d524ed37b449a /activesupport/lib/active_support | |
parent | e886f97669d5aa072af7bb625f5e16635e187124 (diff) | |
download | rails-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/active_support')
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 2 |
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 |