Method: Kthxbye#size
- Defined in:
- lib/kthxbye.rb
#size(queue) ⇒ Object
Takes a string that represents a job queue. Returns the size of the given queue.
98 99 100 |
# File 'lib/kthxbye.rb', line 98 def size(queue) redis.llen("queue:#{queue}").to_i end |