Sha256: 403abaed19a2a349cc4a38212612b52eafcfeb324df84e6b2ca04b580be182e6

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

-- redis.replicate_commands();

local exists_key    = KEYS[1]
local available_key = KEYS[2]
local version_key   = KEYS[3]

local expiration    = tonumber(ARGV[1])

if expiration then
  redis.log(redis.LOG_DEBUG, "create.lua - expiring locks because expiration: " .. tostring(expiration))
  redis.call('EXPIRE', available_key, expiration)
  redis.call('EXPIRE', exists_key, expiration)
  redis.call('EXPIRE', version_key, expiration)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.3 redis/expire.lua
sidekiq-unique-jobs-6.0.2 redis/expire.lua