APIdock / Ruby on Rails
/
Browse About
method

flush!

v5.2.3 - Show latest stable - Class: ActiveRecord::ConnectionAdapters::ConnectionPool
flush!()
public

Disconnect all currently idle connections. Connections currently checked out are unaffected.

# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 622
      def flush!
        reap
        flush(-1)
      end

Related methods

  • Instance methods
  • active_connection?
  • checkin
  • checkout
  • clear_reloadable_connections
  • clear_reloadable_connections!
  • connected?
  • connection
  • discard!
  • disconnect
  • disconnect!
  • flush
  • flush!
  • lock_thread=
  • num_waiting_in_queue
  • reap
  • release_connection
  • remove
  • stat
  • with_connection
  • Class methods
  • new
  • Private methods
  • privateacquire_connection
  • privateadopt_connection
  • privateattempt_to_checkout_all_existing_connections
  • privatebulk_make_new_connections
  • privatecheckout_and_verify
  • privatecheckout_for_exclusive_access
  • privatecheckout_new_connection
  • privateconnection_cache_key
  • privatenew_connection
  • privaterelease
  • privateremove_connection_from_thread_cache
  • privatetry_to_checkout_new_connection
  • privatewith_exclusively_acquired_all_connections
  • privatewith_new_connections_blocked
APIdock API Documentation Browser

© 2026 APIdock