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

Memoize namespace with instance variable.

This commit is contained in:
Terry Appleby 2018-05-06 22:01:55 -04:00 committed by Mike Perham
parent 6e79f2a860
commit f31ed4e699

View file

@ -155,7 +155,7 @@ module Sidekiq
end
def namespace
@@ns ||= Sidekiq.redis { |conn| conn.respond_to?(:namespace) ? conn.namespace : nil }
@ns ||= Sidekiq.redis { |conn| conn.respond_to?(:namespace) ? conn.namespace : nil }
end
def redis_info