Sha256: 28ce7ea9d3a6f25d3ff215b839bd08e8d8f6c06bcef8778d45400ae819fe829c
Contents?: true
Size: 372 Bytes
Versions: 6
Compression:
Stored size: 372 Bytes
Contents
# frozen_string_literal: true module SidekiqUniqueJobs module Connection def self.included(base) base.send(:extend, self) end # :reek:UtilityFunction { enabled: false } def redis(redis_pool = nil) if redis_pool redis_pool.with { |conn| yield conn } else Sidekiq.redis { |conn| yield conn } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems