An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

Pools - Reusable Connection Pooling
-----------------------------------

[![Gem Version](https://badge.fury.io/rb/pools.svg)](https://badge.fury.io/rb/pools)
[![Build Status](https://github.com/rykov/pools/actions/workflows/specs.yml/badge.svg)](https://github.com/rykov/pools/actions/workflows/specs.yml)

Provides connection pooling for multiple services that
use persistent connections

Installation
============

$ 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]