LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-corestoresInMemoryBaseStore
    Class●Since v0.1

    InMemoryBaseStore

    In-memory implementation of the BaseStore using a dictionary.

    Copy
    InMemoryBaseStore(
        self,
    )

    Bases

    BaseStore[str, V]Generic[V]

    Constructors

    constructor
    __init__

    Attributes

    attribute
    store: dict[str, V]

    Methods

    method
    mget
    method
    amget
    method
    mset
    method
    amset
    method
    mdelete
    method
    amdelete
    method
    yield_keys

    Get an iterator over keys that match the given prefix.

    method
    ayield_keys

    Async get an async iterator over keys that match the given prefix.

    View source on GitHub