instance method expires_in=

Ruby on Rails 8.0.4

Since v7.1.6

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

Signature

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

Defined in activesupport/lib/active_support/cache.rb line 1089 · 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