Mastra.getStorage()
The .getStorage() method is used to retrieve the storage instance that has been configured in the Mastra instance.
Usage exampleDirect link to Usage example
mastra.getStorage();
ParametersDirect link to Parameters
This method does not accept any parameters.
ReturnsDirect link to Returns
storage:
MastraStorage | undefined
The configured storage instance, or undefined if no storage has been configured.