> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-docs-zh.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 存储集成

> 集成 LangGraph 长期记忆的存储后端。

存储在 LangGraph 中实现 [长期记忆](https://langchain-docs-zh.mintlify.site/langchain/oss/langgraph/stores.md) 的持久化，允许智能体跨线程持久化和检索信息。

要为自定义存储后端实现自己的存储，请扩展 [BaseStore](https://reference.langchain.com/javascript/langchain-langgraph-checkpoint/BaseStore) 接口。要在 Agent Server 上部署自定义存储，请参阅 [添加自定义存储](https://docs.langchain.com/langsmith/custom-store)。

| 后端 | 包 | 源 |
| - | - | - |
| [内存](https://reference.langchain.com/javascript/langchain-langgraph-checkpoint/InMemoryStore) | [`@langchain/langgraph-checkpoint`](https://www.npmjs.com/package/@langchain/langgraph-checkpoint) | [langchain-ai/langgraphjs](https://github.com/langchain-ai/langgraphjs/tree/main/libs/checkpoint) |
| [PostgreSQL](https://reference.langchain.com/javascript/langchain-langgraph-checkpoint-postgres/store/PostgresStore) | [`@langchain/langgraph-checkpoint-postgres`](https://www.npmjs.com/package/@langchain/langgraph-checkpoint-postgres) | [langchain-ai/langgraphjs](https://github.com/langchain-ai/langgraphjs/tree/main/libs/checkpoint-postgres) |
| [Redis](https://reference.langchain.com/javascript/langchain-langgraph-checkpoint-redis/store/RedisStore) | [`@langchain/langgraph-checkpoint-redis`](https://www.npmjs.com/package/@langchain/langgraph-checkpoint-redis) | [langchain-ai/langgraphjs](https://github.com/langchain-ai/langgraphjs/tree/main/libs/checkpoint-redis) |
| [MongoDB](https://langchain-docs-zh.mintlify.site/langchain/oss/python/integrations/memory/mongodb-long-term-memory.md) | [`@langchain/langgraph-checkpoint-mongodb`](https://www.npmjs.com/package/@langchain/langgraph-checkpoint-mongodb) | [langchain-ai/langgraphjs](https://github.com/langchain-ai/langgraphjs/tree/main/libs/checkpoint-mongodb) |

***

> 官方原文：[src/oss/javascript/integrations/long-term-memory/index.mdx](https://github.com/langchain-ai/docs/blob/main/src/oss/javascript/integrations/long-term-memory/index.mdx) · 非官方翻译，译文由 AI 生成，以英文原文为准。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.