LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.storebaseBaseStore
    Class●Since v1.0

    BaseStore

    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. Some implementations may support semantic search capabilities through an optional index configuration.

    Copy
    BaseStore()

    Bases

    ABC

    Note:

    Semantic search capabilities vary by implementation and are typically disabled by default. Stores that support this feature can be configured by providing an index configuration at creation time. Without this configuration, semantic search is disabled and any index arguments to storage operations will have no effect.

    Similarly, TTL (time-to-live) support is disabled by default. Subclasses must explicitly set supports_ttl = True to enable this feature.

    Used in Docs

    • Fleet AI context integration

    Attributes

    attribute
    supports_ttl: bool
    attribute
    ttl_config: TTLConfig | None

    Methods

    method
    batch

    Execute multiple operations synchronously in a single batch.

    method
    abatch

    Execute multiple operations asynchronously in a single batch.

    method
    get

    Retrieve a single item.

    method
    search

    Search for items within a namespace prefix.

    method
    put

    Store or update an item in the store.

    method
    delete

    Delete an item.

    method
    list_namespaces

    List and filter namespaces in the store.

    Used to explore the organization of data, find specific collections, or navigate the namespace hierarchy.

    method
    aget

    Asynchronously retrieve a single item.

    method
    asearch

    Asynchronously search for items within a namespace prefix.

    method
    aput

    Asynchronously store or update an item in the store.

    method
    adelete

    Asynchronously delete an item.

    method
    alist_namespaces

    List and filter namespaces in the store asynchronously.

    Used to explore the organization of data, find specific collections, or navigate the namespace hierarchy.

    View source on GitHub