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.storebaseTTLConfig
    Class●Since v2.0

    TTLConfig

    Configuration for TTL (time-to-live) behavior in the store.

    Copy
    TTLConfig()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    refresh_on_readbool
    default_ttlfloat | None
    sweep_interval_minutesint | None
    attribute
    refresh_on_read: bool
    attribute
    default_ttl: float | None
    attribute
    sweep_interval_minutes: int | None

    Default behavior for refreshing TTLs on read operations (GET and SEARCH).

    If True, TTLs will be refreshed on read operations (get/search) by default. This can be overridden per-operation by explicitly setting refresh_ttl. Defaults to True if not configured.

    Default TTL (time-to-live) in minutes for new items.

    If provided, new items will expire after this many minutes after their last access. The expiration timer refreshes on both read and write operations. Defaults to None (no expiration).

    Interval in minutes between TTL sweep operations.

    If provided, the store will periodically delete expired items based on TTL. Defaults to None (no sweeping).