# Mastra.getMemory()
[EN] Source: https://mastra.ai/reference/core/getMemory

The `.getMemory()` method is used to retrieve the memory instance that has been configured in the Mastra instance.

## Usage example

```typescript copy
mastra.getMemory();
```

## Parameters

This method does not accept any parameters.

## Returns

<PropertiesTable
  content={[
    {
      name: "memory",
      type: "MastraMemory | undefined",
      description:
        "The configured memory instance, or undefined if no memory has been configured.",
    },
  ]}
/>

## Related

- [Memory overview](/docs/memory/overview)
- [Memory reference](/reference/memory/memory-class)


---
title: "Reference: getScorer() | Core"
description: "Documentation for the `getScorer()` method in Mastra, which retrieves a specific scorer by its registration key."
---