Sign In Register

How can we help you today?

Start a new topic

How to generate GUID/UUID

Hello everoye,

How can i generate a random GUID in cloud code?

1 Comment

If you merely want an id, use a counter stored as a redis key:

var uniqueId = Spark.getRedis().incr("uniqueId");

If you have something else in mind by GUID then I would need to know what that is before I could help achieve that.

Login to post a comment