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