instance method expires_at=

Ruby on Rails 7.1.6

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

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_at req
Source
# File activesupport/lib/active_support/cache.rb, line 1104
      def expires_at=(expires_at)
        @options.delete(:expires_in)
        @options[:expires_at] = expires_at
      end

Defined in activesupport/lib/active_support/cache.rb line 1104 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Cache::WriteOptions

Type at least 2 characters to search.

↑↓ navigate · open · esc close