mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 14:36:53 +00:00
10 lines
183 B
Lua
10 lines
183 B
Lua
local presenceKey = KEYS[1]
|
|
local presenceUuid = ARGV[1]
|
|
|
|
if redis.call("GET", presenceKey) == presenceUuid then
|
|
redis.call("DEL", presenceKey)
|
|
return true
|
|
end
|
|
|
|
return false
|