1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Memoize workers_size.

This commit is contained in:
Ben Ubois 2013-07-28 09:17:33 -07:00
parent 462cc2cd56
commit 09444f9f10

View file

@ -46,7 +46,7 @@ module Sidekiq
end
def workers_size
Sidekiq.redis do |conn|
@workers_size ||= Sidekiq.redis do |conn|
conn.scard('workers')
end
end