Sha256: 2c837cbd97a8aedfcaea3c4b1ddcb17fd9ab3693195ef1b120d0e49c98f92405
Contents?: true
Size: 308 Bytes
Versions: 9
Compression:
Stored size: 308 Bytes
Contents
module Sidekiq module Middleware module Server class UniqueJobs def call(*args) yield ensure json = MultiJson.encode(args[1]) hash = Digest::MD5.hexdigest(json) Sidekiq.redis {|conn| conn.del(hash) } end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems