Sha256: 103746cb1e0851b1f4bb723ba9a166b8a960921ad318df62234564f6a6eca883
Contents?: true
Size: 264 Bytes
Versions: 2
Compression:
Stored size: 264 Bytes
Contents
module Sidekiq module Middleware module Server class UniqueJobs def call(*args) yield ensure Sidekiq.redis {|conn| conn.del(Digest::MD5.hexdigest(MultiJson.encode(args[1]))) } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-0.9.1 | lib/sidekiq/middleware/server/unique_jobs.rb |
sidekiq-0.9.0 | lib/sidekiq/middleware/server/unique_jobs.rb |