Skip to content
This repository
Browse code

Resolves LH #6063, should be :expires_in not :expire_in

  • Loading branch information...
commit b05b8d9aa4bce5a7749b835cf79761b85feaa7d4 1 parent 1c6effc
Aditya Sanghi asanghi authored fxn committed

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 activesupport/lib/active_support/cache.rb
4 activesupport/lib/active_support/cache.rb
@@ -210,8 +210,8 @@ def self.instrument
210 210 # be specified as an option to the construction in which call all entries will be
211 211 # affected. Or it can be supplied to the +fetch+ or +write+ method for just one entry.
212 212 #
213   - # cache = ActiveSupport::Cache::MemoryStore.new(:expire_in => 5.minutes)
214   - # cache.write(key, value, :expire_in => 1.minute) # Set a lower value for one entry
  213 + # cache = ActiveSupport::Cache::MemoryStore.new(:expires_in => 5.minutes)
  214 + # cache.write(key, value, :expires_in => 1.minute) # Set a lower value for one entry
215 215 #
216 216 # Setting <tt>:race_condition_ttl</tt> is very useful in situations where a cache entry
217 217 # is used very frequently and is under heavy load. If a cache expires and due to heavy load

0 comments on commit b05b8d9

Please sign in to comment.
Something went wrong with that request. Please try again.