> Discover all available pages from the documentation index: https://mastra.zisheng.pro/llms.txt # Mastra.getStorage() `.getStorage()` 方法用于获取 Mastra 实例中已配置的 Storage 实例。 ## 使用示例 ```typescript mastra.getStorage() ``` ## 参数 此方法不接受任何参数。 ## 返回值 **storage** (`MastraCompositeStore | undefined`): 已配置的 storage 实例;如果未配置 storage,则为 undefined。 ## 相关内容 - [Storage 概览](https://mastra.zisheng.pro/reference/storage/overview) - [Storage 参考](https://mastra.zisheng.pro/reference/storage/libsql)