Sha256: b19694c137443fa2b83fb0ab063682e33a5991edb57961a0e9a5ad7d8a60e39c
Contents?: true
Size: 750 Bytes
Versions: 2
Compression:
Stored size: 750 Bytes
Contents
connection_pool ====================== Generic connection pooling for Ruby. MongoDB has its own connection pool. ActiveRecord has its own connection pool. This is a generic connection pool that can be used with anything, e.g. Redis, Dalli and other Ruby network clients. Install ------------ gem install connection_pool Usage ------------ Create a pool of objects to share amongst the fibers or threads in your Ruby application: @memcached = ConnectionPool.new(:size => 5, :timeout => 5) { Dalli::Client.new } Then use the pool in your application: @memcached.with_connection do |dalli| dalli.get('some-count') end Author -------------- Mike Perham, [@mperham](https://twitter.com/mperham), <http://mikeperham.com>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
connection_pool-0.0.3 | README.md |
connection_pool-0.0.2 | README.md |