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-clischemasTTLConfig
    Class●Since v0.4

    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.

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

    If provided, all new items will have this TTL unless explicitly overridden. If omitted, items will have no TTL by default.

    Optional. Interval in minutes between TTL sweep iterations.

    If provided, the store will periodically delete expired items based on the TTL. If omitted, no automatic sweeping will occur.