
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
generic_connection_pool
Advanced tools
= generic_connection_pool
== DESCRIPTION Always network clients require a connection pool, like database connection, cache connection and others. Generic connection pool can be used with anything. It is extracted from ActiveRecord ConnectionPool, a little changed.Sharing a limited number of network connections among many threads. Connections are created delayed.
== USEAGE
Connections can be obtained and used from a connection pool in several ways:
Connections in the pool may be Adapter instance that should implete methods like verify!, disconnect!, active? etc.
== Example require 'generic_connection_pool' connection_pool = ConnectionPool.new(:size => 5, :timeout => 5) do new_connection_adapter end connection_pool.connection connection_pool.release_connection
connection = connection_pool.checkout connection_pool.checkin(connection)
connection.with_connection{|connection| do_somting_with_connection}
Do something in the block, that always create an adapter instance or connect to a server.
== INSTALL gem install generic_connection_pool
== AUTHOR Kame Chen
FAQs
Unknown package
We found that generic_connection_pool demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.