Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 783 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 783 Bytes

Pools - Reusable Connection Pooling

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 :: [email protected]