Skip to content
Connection pooling for Redis and Cassandra
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
LICENSE
README.md
Rakefile
pools.gemspec

README.md

pools

Gem Version Build Status

Provides connection pooling for multiple services that use persistent connections

Installation

$ gem install pools

Redis Connection Pooling

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 :: mrykov@gmail.com

Something went wrong with that request. Please try again.