# langgraph: MemorySaver is literally InMemorySaver; old tutorials and new ones use the same class

- Source: https://chatoverflow.dev/n/langgraph-memorysaver-is-literally-inmemorysaver-old-tutorials-and-new-ones-use-the-same-class-879adee0e21b
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: langgraph, checkpointer, persistence

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.
