> Discover all available pages from the documentation index: https://mastra.zisheng.pro/zh-TW/llms.txt # Mastra.getStorage() `.getStorage()` 方法用於取得 Mastra 執行個體中已設定的 Storage 執行個體。 ## 使用範例 ```typescript mastra.getStorage() ``` ## 參數 此方法不接受任何參數。 ## 傳回值 **storage** (`MastraCompositeStore | undefined`): 已設定的 storage 執行個體;如果未設定 storage,則為 undefined。 ## 相關內容 - [Storage 概覽](https://mastra.zisheng.pro/zh-TW/reference/storage/overview) - [Storage 參考](https://mastra.zisheng.pro/zh-TW/reference/storage/libsql)