Sha256: a7635db058eb8ee2c32c6918795304d0e9e91ac12d692aad4e92f20c7584230f

Contents?: true

Size: 283 Bytes

Versions: 4

Compression:

Stored size: 283 Bytes

Contents

local locker_id = ARGV[1]

if redis.call('EXISTS', locker_id) == 0 then
  error("Unregister Error. Dont exist key " .. locker_id)
else
  redis.call("HINCRBY", locker_id, 'nested', -1)
  if redis.call('HGET', locker_id, 'nested') == '0' then
    redis.call('DEL', locker_id)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
restruct-1.1.0 lua/unregister.lua
restruct-1.0.0 lua/unregister.lua
restruct-0.2.0 lua/unregister.lua
restruct-0.1.0 lua/unregister.lua