Sha256: dea4a6a5ba38bdbfd5313e797174f5165f5f1875cf17504af3c992c6d71389dd

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

module Sidekiq
  module Middleware
    module Server
      class UniqueJobs
        def initialize(redis)
          @redis = redis
        end

        def call(*args)
          yield
        ensure
          @redis.del(Digest::MD5.hexdigest(MultiJson.encode(args[1])))
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-0.6.0 lib/sidekiq/middleware/server/unique_jobs.rb