> Discover all available pages from the documentation index: https://mastra.zisheng.pro/ja/llms.txt # Mastra.setStorage() `.setStorage()` メソッドは、Mastra インスタンスに Storage インスタンスを設定します。単一の `MastraCompositeStore` パラメーターを受け取ります。 ## 使用例 ```typescript mastra.setStorage( new LibSQLStore({ id: 'mastra-storage', url: ':memory:', }), ) ``` ## パラメーター **storage** (`MastraCompositeStore`): Mastra インスタンスに設定する Storage インスタンス。 ## 戻り値 このメソッドは値を返しません。 ## 関連項目 - [Storage の概要](https://mastra.zisheng.pro/ja/reference/storage/overview) - [Storage リファレンス](https://mastra.zisheng.pro/ja/reference/storage/libsql)