Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 9c2761ccdc
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.509 kB
require 'rubygems'
require 'raad'
require 'redis'
class RedisQueueSubscriber1
def initialize
@redis_options = {:host => 'localhost', :port => 6379}
@queue = 'test_queue'
@redis = Redis.new(@redis_options)
end
def start
Raad::Logger.info("starting RedisQueueSubscriber1 using #{@redis_options.inspect}")
while !Raad.stopped?
result = @redis.blpop(@queue, timeout = 0)
Raad::Logger.debug("RedisQueueSubscriber1 received=#{result.inspect}") if result
end
end
end
Jump to Line
Something went wrong with that request. Please try again.