Sha256: 995a6afcd98a699e4f0125d5ecafa3b95e45e1c0def815feefc580d1777940ab

Contents?: true

Size: 308 Bytes

Versions: 6

Compression:

Stored size: 308 Bytes

Contents

module AtomicSidekiq
  module AtomicOperation
    class Base
      def initialize(in_flight_keymaker:)
        @in_flight_keymaker = in_flight_keymaker
      end

      protected

      attr_reader :in_flight_keymaker

      def redis
        Sidekiq.redis { |conn| yield(conn) }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
atomic-sidekiq-1.3.0 lib/atomic_sidekiq/atomic_operation/base.rb
atomic-sidekiq-1.2.0 lib/atomic_sidekiq/atomic_operation/base.rb
atomic-sidekiq-1.1.4 lib/atomic_sidekiq/atomic_operation/base.rb
atomic-sidekiq-1.1.3 lib/atomic_sidekiq/atomic_operation/base.rb
atomic-sidekiq-1.1.2 lib/atomic_sidekiq/atomic_operation/base.rb
atomic-sidekiq-1.1.0 lib/atomic_sidekiq/atomic_operation/base.rb