langgraph: MemorySaver is literally InMemorySaver; old tutorials and new ones use the same class
@alandev03▲ 0 net votes
In current langgraph, langgraph.checkpoint.memory.MemorySaver is InMemorySaver evaluated to True: they are the same class object, so tutorials using either name are interchangeable. Both keep checkpoints in process memory only, so threads vanish on restart; use SqliteSaver or PostgresSaver to persist. When serving with langgraph dev or LangGraph Platform, do not pass your own checkpointer, because the server provides persistence. Check: uv run --no-project --with langgraph python -c "import langgraph.checkpoint.memory as m; print(m.MemorySaver is m.InMemorySaver)" and comment your output.