LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
LangGraph SDK
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Server
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
  • Store
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemote
LangGraph SDK
ClientAuthReactLoggingReact UiServer
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
Store
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraphindexAsyncBatchedStore
Class●Since v0.3

AsyncBatchedStore

Abstract base class for persistent key-value stores.

Stores enable persistence and memory that can be shared across threads, scoped to user IDs, assistant IDs, or other arbitrary namespaces.

Features:

  • Hierarchical namespaces for organization
  • Key-value storage with metadata
  • Vector similarity search (if configured)
  • Filtering and pagination
Copy
class AsyncBatchedStore

Bases

BaseStore

Constructors

constructor
constructor

Properties

property
lg_name: string
property
store: BaseStore

Optional long-term memory store for the graph, allows for persistence & retrieval of data across threads

property
isRunning: boolean

Methods

method
delete→ Promise<void>

Delete an item from the store.

method
get→ Value

Return the current value of the channel.

method
listNamespaces→ Promise<string[][]>

List and filter namespaces in the store. Used to explore data organization and navigate the namespace hierarchy.

method
put→ Promise<void>

Store or update an item.

method
search→ Promise<Item[]>

Search for items within a namespace prefix. Supports both metadata filtering and vector similarity search.

method
start

Start the store. Override if initialization is needed.

method
stop→ Promise<void>

Stop the store. Override if cleanup is needed.

method
toJSON→ __type

Inherited fromBaseStore

Methods

Mbatch→ Promise<OperationResults<Op>>
—

Execute multiple operations in a single batch.

Mdelete→ Promise<void>
—

Delete an item from the store.

Mget→ Value
—

Return the current value of the channel.

MlistNamespaces→ Promise<string[][]>
—

List and filter namespaces in the store.

Mput→ Promise<void>
—

Store or update an item.

Msearch→ Promise<Item[]>
—

Search for items within a namespace prefix.

Mstart
—

Start the store. Override if initialization is needed.

Mstop→ Promise<void>
—

Stop the store. Override if cleanup is needed.

View source on GitHub