CreateUniqueId()
Creates a Unique Identifier. Only unique for this instance, but shorter than an UUId.
CreateUniqueId( type=string );
Returns: String
| Argument | Description | Default |
|---|---|---|
|
type
string,
optional
|
edit
If the string "counter" is passed then it's only unique for this instance in this lifecycle, otherwise the returned value will be a 22 character UUID, encoded as a URL-safe Base64. |
Examples
editdump(CreateUniqueId());
See also
- CreateGUID()
- CreateUUID()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)