if redis.call("SETNX", KEYS[1], ARGV[1]) == 1 then
redis.call("EXPIRE", KEYS[1], ARGV[2])
return 1
else
return 0
end
原创文章,作者:IT_editor,如若转载,请注明出处:https://docs.ihr360.com/tech_arch/arch_ability/28404