UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

30 lines (17 loc) 604 B
[**minigame-std**](../../../README.md) *** [minigame-std](../../../README.md) / [storage](../README.md) / removeItem # Function: removeItem() ```ts function removeItem(key): AsyncVoidIOResult ``` 从本地缓存中移除指定的数据。 ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `key` | `string` | 数据的键名。 | ## Returns `AsyncVoidIOResult` 返回一个 Promise,表示操作完成。 ## Defined in [src/std/storage/mod.ts:51](https://github.com/JiangJie/minigame-std/blob/8633d80114dee6c79033ec094d8233bd8263bedc/src/std/storage/mod.ts#L51)