- async-io based connector
- simple connection ppol
Add this line to your application's Gemfile:
gem 'eblocker-async-redis'
And then execute:
$ bundle
Or install it yourself as:
$ gem install eblocker-async-redis
Create a pool somewhere:
logger = Logger.new($stderr).tap{|logger| logger.level = Logger::DEBUG}
@redis_pool = RedisPool.new({ :host => '127.0.0.1', :port => '6379'}, logger)
Use it:
@redis_pool.connection do |redis|
redis.rpush("hello", "world")
end