mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-13 13:31:19 +00:00
17 lines
411 B
Ruby
17 lines
411 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Patch
|
|
module RedisStoreFactory
|
|
def create
|
|
# rubocop:disable Gitlab/ModuleWithInstanceVariables -- patched code references @options in redis-store
|
|
opt = @options
|
|
# rubocop:enable Gitlab/ModuleWithInstanceVariables
|
|
return Gitlab::Redis::ClusterStore.new(opt) if opt[:nodes]
|
|
|
|
super
|
|
end
|
|
end
|
|
end
|
|
end
|