local occupyValue = ARGV[1] local ttl = tonumber(ARGV[2]) if redis.call('exists', KEYS[1]) == 1 then return 0 end redis.call('psetex', KEYS[1], ttl, occupyValue) return 1