Skip to content

Commit

Permalink
Merge pull request #25294 from Zorbash/cache-fetch-race-condition-ttl…
Browse files Browse the repository at this point in the history
…-doc

Change doc for race_condition_ttl option of ActiveSupport::Cache::Sto… [ci skip]
  • Loading branch information
vipulnsward committed Jun 7, 2016
2 parents 1621eda + f484bb0 commit b24d44e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activesupport/lib/active_support/cache.rb
Expand Up @@ -250,14 +250,14 @@ def mute
# sleep 60
#
# Thread.new do
# val_1 = cache.fetch('foo', race_condition_ttl: 10) do
# val_1 = cache.fetch('foo', race_condition_ttl: 10.seconds) do
# sleep 1
# 'new value 1'
# end
# end
#
# Thread.new do
# val_2 = cache.fetch('foo', race_condition_ttl: 10) do
# val_2 = cache.fetch('foo', race_condition_ttl: 10.seconds) do
# 'new value 2'
# end
# end
Expand Down

0 comments on commit b24d44e

Please sign in to comment.