Merge pull request #3463 from kennyj/fix_document_for_cache

fix a document for race_condition_ttl. ActiveSupport::Cache::MemoryCache isn't exist.
This commit is contained in:
Santiago Pastorino 2011-10-29 17:53:00 -07:00
commit 8ef1bd9b29
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ module ActiveSupport
# <tt>:race_condition_ttl</tt> does not play any role. # <tt>:race_condition_ttl</tt> does not play any role.
# #
# # Set all values to expire after one minute. # # 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") # cache.write("foo", "original value")
# val_1 = nil # val_1 = nil