Sha256: ba50d074efc1b328037eb9400fe290c0d53222f8968c7ca3c99667535e9fc9b6

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

require 'sidekiq_unique_jobs/connectors/testing'
require 'sidekiq_unique_jobs/connectors/redis_pool'
require 'sidekiq_unique_jobs/connectors/sidekiq_redis'

module SidekiqUniqueJobs
  module Connectors
    CONNECTOR_TYPES = [Testing, RedisPool, SidekiqRedis]

    def self.connection(redis_pool = nil, &block)
      CONNECTOR_TYPES.each do |connector|
        had_connection = connector.connection(redis_pool, &block)
        return if had_connection
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-3.0.11 lib/sidekiq_unique_jobs/connectors.rb