Method: ActiveSupport::Cache::WriteOptions#expires_in=
- Defined in:
- lib/active_support/cache.rb
#expires_in=(expires_in) ⇒ Object
Sets the Cache entry’s expires_in
value. If an expires_at
option was previously set, this will unset it since expires_in
and expires_at
cannot both be set.
1089 1090 1091 1092 |
# File 'lib/active_support/cache.rb', line 1089 def expires_in=(expires_in) @options.delete(:expires_at) @options[:expires_in] = expires_in end |