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)