https://github.com/rykov/pools
Connection pooling for Redis and Cassandra
https://github.com/rykov/pools
Last synced: 3 months ago
JSON representation
Connection pooling for Redis and Cassandra
- Host: GitHub
- URL: https://github.com/rykov/pools
- Owner: rykov
- License: mit
- Created: 2011-03-14T03:17:38.000Z (about 14 years ago)
- Default Branch: main
- Last Pushed: 2023-10-29T05:39:07.000Z (over 1 year ago)
- Last Synced: 2025-02-26T22:48:50.435Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 27.3 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Pools - Reusable Connection Pooling
-----------------------------------[](https://badge.fury.io/rb/pools)
[](https://github.com/rykov/pools/actions/workflows/specs.yml)Provides connection pooling for multiple services that
use persistent connectionsInstallation
============$ gem install pools
Redis Connection Pooling
========================```ruby
redis = Redis::Pooled.new(regular_init_options)
redis.set("Regular", "Command")# Check out a connection for multiple commands
redis.with_connection do |conn|
conn.multi
a = conn.get('a')
conn.set('b', a)
conn.exec
end
```Author
=====Michael Rykov :: [email protected]