minigame-std
    Preparing search index...

    Function removeItem

    • 从本地缓存中移除指定的数据。

      Parameters

      • key: string

        数据的键名。

      Returns AsyncVoidIOResult

      移除操作的异步结果。

      const result = await removeItem('username');
      if (result.isOk()) {
      console.log('移除成功');
      }