Mastra.setStorage()
The .setStorage() method is used to set the storage instance for the Mastra instance. This method accepts a single MastraCompositeStore parameter.
Usage exampleUsage example的直接链接
mastra.setStorage(
new LibSQLStore({
id: 'mastra-storage',
url: ':memory:',
}),
)
ParametersParameters的直接链接
storage:
MastraCompositeStore
The storage instance to set for the Mastra instance.
ReturnsReturns的直接链接
This method doesn't return a value.