This is a very simple Lua ULID (Universally unique Lexicographically sortable IDentifier) generator
Note: This was made for nanos worldβ’, if you plan to use it outside you'll have to make some tweaks to the library
πΈ ClientπΉ Server
Removes the ULID from the cache
@param sULID β The ULID to remove
function ULID.Clear(sULID: string)πΈ ClientπΉ Server
Generate a random ULID
@param xData β The data to bind to the ULID, defaults to true
@return β The generated ULID
function ULID.Generate(xData?: any)
-> stringπΈ ClientπΉ Server
Return a value binded to the passed ULID
@param sULID β The ULID to search
@return β The value binded to the ULID, defaults to true
function ULID.Get(sULID: string)
-> anyπΈ ClientπΉ Server
Returns the ULID registry
@return β The ULID registry
function ULID.GetTable()
-> table<string, any>πΈ ClientπΉ Server
Adds an ULID to the cache
@param sULID β The ULID to add
@param xData β The data to bind to the ULID, defaults to true
function ULID.Store(sULID: string, xData?: any)