> Discover all available pages from the documentation index: https://mastra.zisheng.pro/ko/llms.txt # Mastra.listMemory() 그만큼`.listMemory()`메소드는 Mastra 인스턴스에 등록된 모든 Memory 인스턴스를 반환합니다. ## 사용예 ```typescript const memoryInstances = mastra.listMemory() for (const [key, memory] of Object.entries(memoryInstances)) { console.log(`Memory "${key}": ${memory.id}`) } ``` ## 매개변수 이 메서드는 매개변수를 사용하지 않습니다. ## 보고 **memory** (`Record`): 등록된 모든 Memory 인스턴스를 레지스트리 키별로 담은 객체입니다. ## 예: 등록된 Memory 확인하기 ```typescript import { Mastra } from '@mastra/core' import { Memory } from '@mastra/memory' import { LibSQLStore } from '@mastra/libsql' const conversationMemory = new Memory({ id: 'conversation-memory', storage: new LibSQLStore({ id: 'conversation-store', url: ':memory:' }), }) const analyticsMemory = new Memory({ id: 'analytics-memory', storage: new LibSQLStore({ id: 'analytics-store', url: ':memory:' }), }) const mastra = new Mastra({ memory: { conversationMemory, analyticsMemory, }, }) // List all registered memory instances const allMemory = mastra.listMemory() console.log(Object.keys(allMemory)) // ["conversationMemory", "analyticsMemory"] ``` ## 관련된 - [마스트라.getMemory()](https://mastra.zisheng.pro/ko/reference/core/getMemory) - [Memory 개요](https://mastra.zisheng.pro/ko/docs/memory/overview)