diff options
author | Aditya Sanghi <asanghi@me.com> | 2010-11-27 15:20:46 +0530 |
---|---|---|
committer | Aditya Sanghi <asanghi@me.com> | 2010-11-27 15:20:46 +0530 |
commit | f28916194cc19759dd6b1ce4f22ef59b49f0c8f8 (patch) | |
tree | 50fbeabd7f63d1269b62e51e25a65e071683ab33 | |
parent | fd83f9d51583c080072dc9fd00f02ad742e265d4 (diff) | |
download | rails-f28916194cc19759dd6b1ce4f22ef59b49f0c8f8.tar.gz rails-f28916194cc19759dd6b1ce4f22ef59b49f0c8f8.tar.bz2 rails-f28916194cc19759dd6b1ce4f22ef59b49f0c8f8.zip |
Resolves LH #6063, should be :expires_in not :expire_in
-rw-r--r-- | activesupport/lib/active_support/cache.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb index 9098ffbfec..d31dad6bc7 100644 --- a/activesupport/lib/active_support/cache.rb +++ b/activesupport/lib/active_support/cache.rb @@ -210,8 +210,8 @@ module ActiveSupport # be specified as an option to the construction in which call all entries will be # affected. Or it can be supplied to the +fetch+ or +write+ method for just one entry. # - # cache = ActiveSupport::Cache::MemoryStore.new(:expire_in => 5.minutes) - # cache.write(key, value, :expire_in => 1.minute) # Set a lower value for one entry + # cache = ActiveSupport::Cache::MemoryStore.new(:expires_in => 5.minutes) + # cache.write(key, value, :expires_in => 1.minute) # Set a lower value for one entry # # Setting <tt>:race_condition_ttl</tt> is very useful in situations where a cache entry # is used very frequently unver heavy load. If a cache expires and due to heavy load |