Module: Sidekiq::Queue::UniqueExtension
- Included in:
- Sidekiq::Queue
- Defined in:
- lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
111 112 113 114 115 116 117 |
# File 'lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb', line 111 def self.included(base) base.class_eval do include UnlockMethod alias_method :clear_orig, :clear alias_method :clear, :clear_ext end end |
Instance Method Details
#clear_ext ⇒ Object
119 120 121 122 |
# File 'lib/sidekiq_unique_jobs/sidekiq_unique_ext.rb', line 119 def clear_ext each(&:delete) clear_orig end |