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:
parent
6e79f2a860
commit
f31ed4e699
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue