~singpolyma/sgx-jmp

ref: 75658ba14b40d551488dae800e9a7d2bfeb239a8 sgx-jmp/redis_lua/spopsadd.lua -rw-r--r-- 153 bytes
75658ba1Stephen Paul Weber Use FormTemplate for activation form 8 months ago
                                                                                
1
2
3
4
5
6
local addr = redis.call("spop", KEYS[1])
if not addr then
	return redis.error_reply("Nothing to SPOP")
end
redis.call("sadd", KEYS[2], addr)
return addr