Files
gitlabhq/lib/gitlab/patch/redis_store_factory.rb
2024-02-27 12:08:45 +00:00

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