Numeric key: Is it int or long

Our application would have hundreds of diagram having many number of nodes. For uniquely identifying each node, I need to create unique key at the time of node creation by checking for duplicate key across all the diagrams.

I would be using makeUniqueKeyFunction for unique key generation but there would be thousands of nodes.
So just want to know what is the max integer value that can be set for the key ?

Keys must be either strings or numbers. In JavaScript numbers are not necessarily either int or long, because they include floating point values.

Thanks Walter.