Queued client for Ruby
Ruby
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
LICENSE
README.md
Rakefile
queued-ruby.gemspec

README.md

queued-ruby

Queued client for Ruby

Example

require 'queued-ruby'

client = Queued::Client.new('http://localhost:5353', auth: 'secret')
queue = client.queue('testing')

Producer:

item = queue.enqueue(foo: 'bar')

Consumer:

item = queue.dequeue(timeout: 10, wait: 30)
if item
  p item.value
  item.complete
end

Install

gem install queued-ruby