InMemoryByteStore features and configurations head to the API reference.
Overview
TheInMemoryByteStore is a non-persistent implementation of a ByteStore that stores everything in a Python dictionary. It’s intended for demos and cases where you don’t need persistence past the lifetime of the Python process.
Integration details
| Class | Package | Local | JS support | Downloads | Version |
|---|---|---|---|---|---|
| InMemoryByteStore | langchain-core | ✅ | ✅ |
Installation
The LangChainInMemoryByteStore integration lives in the langchain-core package:
Instantiation
Now you can instantiate your byte store:Usage
You can set data under keys like this using themset method:
mdelete method:
API reference
For detailed documentation of allInMemoryByteStore features and configurations, head to the API reference: python.langchain.com/api_reference/core/stores/langchain_core.stores.InMemoryByteStore.html
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.