mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-10 03:00:46 +00:00
23 lines
445 B
Ruby
23 lines
445 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Redis
|
|
class Workhorse < ::Gitlab::Redis::Wrapper
|
|
class << self
|
|
def config_fallback
|
|
SharedState
|
|
end
|
|
|
|
private
|
|
|
|
def redis
|
|
primary_store = ::Redis.new(params)
|
|
secondary_store = ::Redis.new(config_fallback.params)
|
|
|
|
MultiStore.new(primary_store, secondary_store, store_name)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|