instance method keepalive

Ruby on Rails edge

Since v8.1.4

Available in: v8.1.4 edge

Signature

keepalive()

No documentation comment.

Source
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 147
      def keepalive
        case keepalive = configuration_hash[:keepalive]
        when false
          nil
        when nil, true
          600.0 # default
        else
          keepalive = keepalive.to_f
          keepalive if keepalive > 0.0
        end
      end

Defined in activerecord/lib/active_record/database_configurations/hash_config.rb line 147 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::DatabaseConfigurations::HashConfig

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close