local value = tonumber(redis.call('GET', KEYS[1])) if value == nil then value = 0 end redis.debug('asdfasdf') local newValue = tonumber(KEYS[2]) if newValue > value then redis.call('SET', KEYS[1], newValue) return 1; end return 0;