# Enum.DataStoreRequestType

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/DataStoreRequestType/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/DataStoreRequestType

Indicates the type of data store request being made.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `GetAsync` | 0 | Refers to `GetAsync()` and the read of `UpdateAsync()`. |
| `SetIncrementAsync` | 1 | Refers to `SetAsync()`, `IncrementAsync()`, `RemoveAsync()`, and the write of `UpdateAsync()` when it returns a non-`nil` value. |
| `UpdateAsync` | 2 | Refers to `UpdateAsync()`. |
| `GetSortedAsync` | 3 | Refers to `GetSortedAsync()`. |
| `SetIncrementSortedAsync` | 4 | Refers to `SetAsync()` `IncrementAsync()`, `RemoveAsync()`, and the write of `UpdateAsync()` while using an [`OrderedDataStore`](https://rapi.sleaze.dev/classes/OrderedDataStore.md). |
| `OnUpdate` | 5 | Refers to `OnUpdate()`. |
| `ListAsync` | 6 | Refers to `ListKeysAsync()` and `ListVersionsAsync()`. |
| `GetVersionAsync` | 7 | Refers to `GetVersionAsync()`. |
| `RemoveVersionAsync` | 8 | Refers to `RemoveVersionAsync()`. |
| `StandardRead` | 9 | Refers to `GetAsync()`, `GetVersionAsync()`, `GetVersionAtTimeAsync()`, and the read of `UpdateAsync()` for [`DataStore`](https://rapi.sleaze.dev/classes/DataStore.md). |
| `StandardWrite` | 10 | Refers to `SetAsync()`, `IncrementAsync()`, and the write of `UpdateAsync()` for [`DataStore`](https://rapi.sleaze.dev/classes/DataStore.md). |
| `StandardList` | 11 | Refers to `ListDataStoresAsync()`, and `ListKeysAsync()` and `ListVersionsAsync()` for [`DataStore`](https://rapi.sleaze.dev/classes/DataStore.md). |
| `StandardRemove` | 12 | Refers to `RemoveAsync()` for [`DataStore`](https://rapi.sleaze.dev/classes/DataStore.md). |
| `OrderedRead` | 13 | Refers to `GetAsync()` and the read of `UpdateAsync()` for [`OrderedDataStore`](https://rapi.sleaze.dev/classes/OrderedDataStore.md). |
| `OrderedWrite` | 14 | Refers to `SetAsync()`, `IncrementAsync()`, and the write of `UpdateAsync()` for [`OrderedDataStore`](https://rapi.sleaze.dev/classes/OrderedDataStore.md). |
| `OrderedList` | 15 | Refers to `GetSortedAsync()` for [`OrderedDataStore`](https://rapi.sleaze.dev/classes/OrderedDataStore.md). GetRequestBudgetForRequestType()`with this enum will return`0`. |
| `OrderedRemove` | 16 | Refers to `RemoveAsync()` for [`OrderedDataStore`](https://rapi.sleaze.dev/classes/OrderedDataStore.md). |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [DataStoreService](https://rapi.sleaze.dev/classes/DataStoreService.md): method parameter `GetRequestBudgetForRequestType`, `SetRateLimitForRequestType`
