Method: Kthxbye#delete_queue
- Defined in:
- lib/kthxbye.rb
#delete_queue(queue) ⇒ Object
Completely removes queue: Unregisters it then deletes it should return true in all cases (including if we try to delete a non-existent queue). Note: also deletes the data and result stores for this queue.
165 166 167 168 169 170 171 172 |
# File 'lib/kthxbye.rb', line 165 def delete_queue(queue) unregister_queue(queue) redis.del( "queue:#{queue}" ) redis.del( "data-store:#{queue}" ) redis.del( "result-store:#{queue}" ) true end |