instance method
expires_in
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18 Private — implementation detail, not part of the public APISignature
expires_in(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File activesupport/lib/active_support/cache.rb, line 235
def expires_in(options)
expires_in = options && options[:expires_in]
raise ":expires_in must be a number" if expires_in && !expires_in.is_a?(Numeric)
expires_in || 0
end
Defined in activesupport/lib/active_support/cache.rb line 235
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store