tavern-redis
Tavern Redis lets you publish and receive tavern messages over redis. Useful for situations where you want to implement simple pubsub with ruby-like semantics over a network. Magic!
Installation
Add this line to your application's Gemfile:
gem 'tavern-redis'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tavern-redis
Usage
Inside your application, simple set your hub to a Tavern::Redis::Hub
instance:
Tavern.hub = Tavern::Redis::Hub.new Redis.new
Next, in a script where you want the subscribers to work, run:
Tavern.hub.start
Whilst using the hub as normal in your main application
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