Sha256: 82374b49cede14eada6b9d3c15e4cf32d58d9b6373a0dc4c706edcf65965e0a3

Contents?: true

Size: 193 Bytes

Versions: 5

Compression:

Stored size: 193 Bytes

Contents

local unique_key     = KEYS[1]
local job_id         = ARGV[1]
local expires        = ARGV[2]

if redis.pcall('set', unique_key, job_id, 'nx', 'ex', expires) then
  return 1
else
  return 0
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-4.0.10 redis/aquire_lock.lua
sidekiq-unique-jobs-4.0.9 redis/aquire_lock.lua
sidekiq-unique-jobs-4.0.8 redis/aquire_lock.lua
sidekiq-unique-jobs-4.0.7 redis/aquire_lock.lua
sidekiq-unique-jobs-4.0.0 redis/aquire_lock.lua