mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-22 15:42:25 +02:00
checkpoint: update note in MemorySaver (#1862)
This commit is contained in:
@@ -29,8 +29,8 @@ class MemorySaver(
|
||||
This checkpoint saver stores checkpoints in memory using a defaultdict.
|
||||
|
||||
Note:
|
||||
Since checkpoints are saved in memory, they will be lost when the program exits.
|
||||
Only use this saver for debugging or testing purposes.
|
||||
Only use `MemorySaver` for debugging or testing purposes.
|
||||
For production use cases we recommend installing [langgraph-checkpoint-postgres](https://pypi.org/project/langgraph-checkpoint-postgres/) and using `PostgresSaver` / `AsyncPostgresSaver`.
|
||||
|
||||
Args:
|
||||
serde (Optional[SerializerProtocol]): The serializer to use for serializing and deserializing checkpoints. Defaults to None.
|
||||
|
||||
Reference in New Issue
Block a user