Last active
June 29, 2021 19:14
-
-
Save Chriz76/cb955af44a6527e826aaaadde04ecb04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if tonumber(redis.call('ZADD', KEYS[1], ARGV[1], ARGV[2])) == 1 then | |
return redis.call('INCR', KEYS[2]) | |
else | |
return redis.call('GET', KEYS[2]) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment