Welcome to mirror list, hosted at ThFree Co, Russian Federation.

shared_state.rb « redis « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d12d3e8c6aaf2a9e23f4f3bda1868bb08446dcdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Gitlab
  module Redis
    class SharedState < ::Gitlab::Redis::Wrapper
      def self.redis
        primary_store = ::Redis.new(ClusterSharedState.params)
        secondary_store = ::Redis.new(params)

        MultiStore.new(primary_store, secondary_store, store_name)
      end
    end
  end
end