minigame-std
Version:
Mini Game Standard Development Library.
28 lines (16 loc) • 601 B
Markdown
[**minigame-std**](../../../README.md)
***
[minigame-std](../../../README.md) / [storage](../README.md) / removeItem
# Function: removeItem()
```ts
function removeItem(key): AsyncVoidIOResult
```
Defined in: [src/std/storage/mod.ts:54](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/storage/mod.ts#L54)
从本地缓存中移除指定的数据。
## Parameters
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `key` | `string` | 数据的键名。 |
## Returns
`AsyncVoidIOResult`
返回一个 Promise,表示操作完成。