-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccfcff2
commit d2bb617
Showing
1 changed file
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,75 @@ | ||
# ULID | ||
Lua ULID generator | ||
### ULID.Clear | ||
|
||
`🔸 Client`<br>`🔹 Server`<br> | ||
Removes the ULID from the cache | ||
|
||
@*param* `sULID` — The ULID to remove<br> | ||
|
||
```lua | ||
function ULID.Clear(sULID: string) | ||
``` | ||
|
||
|
||
--- | ||
|
||
### ULID.Generate | ||
|
||
`🔸 Client`<br>`🔹 Server`<br> | ||
Generate a random ULID | ||
|
||
@*param* `xData` — The data to bind to the ULID, defaults to `true` | ||
|
||
@*return* — The generated ULID | ||
|
||
```lua | ||
function ULID.Generate(xData?: any) | ||
-> string | ||
``` | ||
|
||
|
||
--- | ||
|
||
### ULID.Get | ||
|
||
`🔸 Client`<br>`🔹 Server`<br> | ||
Return a value binded to the passed ULID | ||
|
||
@*param* `sULID` — The ULID to search | ||
|
||
@*return* — The value binded to the ULID, defaults to `true` | ||
|
||
```lua | ||
function ULID.Get(sULID: string) | ||
-> any | ||
``` | ||
|
||
|
||
--- | ||
|
||
### ULID.GetTable | ||
|
||
`🔸 Client`<br>`🔹 Server`<br> | ||
Returns the ULID registry | ||
|
||
@*return* — The ULID registry | ||
|
||
```lua | ||
function ULID.GetTable() | ||
-> table<string, ULID> | ||
``` | ||
|
||
|
||
--- | ||
|
||
### ULID.Store | ||
|
||
`🔸 Client`<br>`🔹 Server`<br> | ||
Adds an ULID to the cache | ||
|
||
@*param* `sULID` — The ULID to add | ||
|
||
@*param* `xData` — The data to bind to the ULID, defaults to `true` | ||
|
||
```lua | ||
function ULID.Store(sULID: string, xData?: any) | ||
``` |