mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
memoized
This commit is contained in:
parent
d666ed6fd3
commit
d7488364e9
1 changed files with 4 additions and 2 deletions
|
@ -247,8 +247,10 @@ module Sidekiq
|
||||||
end
|
end
|
||||||
|
|
||||||
def redis_connection_and_namespace
|
def redis_connection_and_namespace
|
||||||
namespace_suffix = namespace.blank? ? '' : "##{namespace}"
|
@redis_connection_and_namespace ||= begin
|
||||||
"#{redis_connection}#{namespace_suffix}"
|
namespace_suffix = namespace.blank? ? '' : "##{namespace}"
|
||||||
|
"#{redis_connection}#{namespace_suffix}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue