method

expires_in

rails latest stable - Class: ActiveSupport::Cache::Store

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

expires_in(options)
private

No documentation available.

# 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