Sha256: 36d91cb09acfde32f348aad3be885f6919c69d2ac98b4b7783d3858eab42415d
Contents?: true
Size: 335 Bytes
Versions: 1
Compression:
Stored size: 335 Bytes
Contents
local unique_key = KEYS[1] local time = ARGV[1] if redis.pcall('set', unique_key, time + 60, 'nx', 'ex', 60) then return 1 end local stored_time = redis.pcall('get', unique_key) if stored_time and stored_time < time then if redis.call('set', unique_key, time + 60, 'nx', 'ex') then return 1 end end return 0
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-4.0.0 | redis/synchronize.lua |