HellaRedis
It's-a hella-redis!
Usage
Connection
# config and create a connection
@config = {
:timeout => 1,
:size => 5,
:redis_ns => 'hella-redis-test',
:driver => 'ruby',
:url => 'redis://localhost:6379/0'
}
@conn = HellaRedis::Connection.new(@config)
# it's actually a pool of connections
@conn.with do |conn|
# get a connection and do something with it
end
Installation
Add this line to your application's Gemfile:
gem 'hella-redis'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hella-redis
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request