instance method
expires_in=
Ruby on Rails 7.1.6
Since v7.1.6Signature
expires_in=(expires_in)
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.
Parameters
-
expires_inreq
Source
# File activesupport/lib/active_support/cache.rb, line 1092
def expires_in=(expires_in)
@options.delete(:expires_at)
@options[:expires_in] = expires_in
end
Defined in activesupport/lib/active_support/cache.rb line 1092
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::WriteOptions