Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Timmy-the-nobody authored May 9, 2024
1 parent ccfcff2 commit d2bb617
Showing 1 changed file with 75 additions and 2 deletions.
77 changes: 75 additions & 2 deletions README.md
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)
```

0 comments on commit d2bb617

Please sign in to comment.