Add an explicit client presence system.

This commit is contained in:
Jon Chambers
2020-08-04 14:55:23 -04:00
committed by Jon Chambers
parent 9457325119
commit 2c29f831e8
10 changed files with 572 additions and 31 deletions

View File

@@ -0,0 +1,9 @@
local presenceKey = KEYS[1]
local presenceUuid = ARGV[1]
if redis.call("GET", presenceKey) == presenceUuid then
redis.call("DEL", presenceKey)
return true
end
return false