Skip to Content Skip to Search

class ActiveSupport::Cache::WriteOptions

Public instance methods

expires_at()

Permalink
Source code GitHub
# File activesupport/lib/active_support/cache.rb, line 1097
def expires_at
  @options[:expires_at]
end

expires_at=(expires_at)

Permalink
Source code GitHub
# File activesupport/lib/active_support/cache.rb, line 1101
def expires_at=(expires_at)
  @options.delete(:expires_in)
  @options[:expires_at] = expires_at
end

expires_in()

Permalink
Source code GitHub
# File activesupport/lib/active_support/cache.rb, line 1088
def expires_in
  @options[:expires_in]
end

expires_in=(expires_in)

Permalink
Source code GitHub
# File activesupport/lib/active_support/cache.rb, line 1092
def expires_in=(expires_in)
  @options.delete(:expires_at)
  @options[:expires_in] = expires_in
end

version()

Permalink
Source code GitHub
# File activesupport/lib/active_support/cache.rb, line 1080
def version
  @options[:version]
end

version=(version)

Permalink
Source code GitHub
# File activesupport/lib/active_support/cache.rb, line 1084
def version=(version)
  @options[:version] = version
end

Definition files