Sha256: 77c8171d0c046176dc67109d6dd155fb4ae528cbec96c1de03bdecacc52c526f

Contents?: true

Size: 369 Bytes

Versions: 6

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  module Unlockable
    module_function

    def unlock(item)
      SidekiqUniqueJobs::UniqueArgs.digest(item)
      SidekiqUniqueJobs::Locksmith.new(item).unlock
    end

    def delete(item)
      SidekiqUniqueJobs::UniqueArgs.digest(item)
      SidekiqUniqueJobs::Locksmith.new(item).delete!
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.0.rc6 lib/sidekiq_unique_jobs/unlockable.rb
sidekiq-unique-jobs-6.0.0.rc5 lib/sidekiq_unique_jobs/unlockable.rb
sidekiq-unique-jobs-6.0.0.rc4 lib/sidekiq_unique_jobs/unlockable.rb
sidekiq-unique-jobs-6.0.0.rc3 lib/sidekiq_unique_jobs/unlockable.rb
sidekiq-unique-jobs-6.0.0.rc2 lib/sidekiq_unique_jobs/unlockable.rb
sidekiq-unique-jobs-6.0.0.rc1 lib/sidekiq_unique_jobs/unlockable.rb