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