Class: Chasqui::QueueAdapter::RedisQueueAdapter
- Inherits:
-
Object
- Object
- Chasqui::QueueAdapter::RedisQueueAdapter
- Extended by:
- Forwardable
- Defined in:
- lib/chasqui/queue_adapter/redis_queue_adapter.rb
Instance Method Summary collapse
Instance Method Details
#bind(subscriber) ⇒ Object
7 8 9 10 |
# File 'lib/chasqui/queue_adapter/redis_queue_adapter.rb', line 7 def bind(subscriber) redis.sadd key(subscriber.channel), queue_description(subscriber) worker_redis.sadd 'queues', subscriber.queue end |
#unbind(subscriber) ⇒ Object
12 13 14 |
# File 'lib/chasqui/queue_adapter/redis_queue_adapter.rb', line 12 def unbind(subscriber) redis.srem key(subscriber.channel), queue_description(subscriber) end |