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

    Chat LangChain

    What can I help with?

    Enter to send·Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-corelanguage_modelsmodel_profileExplicitCachePolicy
    Class●Since v1.9

    ExplicitCachePolicy

    Copy
    ExplicitCachePolicy()

    Bases

    ImplicitCachePolicy

    Attributes

    Inherited fromImplicitCachePolicy

    Attributes

    Attl: list[str]
    —

    Supported retention durations, e.g. ['5m', '1h']; not an active TTL.

    Amin_tokens: int
    —

    Minimum cacheable prefix length in tokens.

    View source on GitHub
    attribute
    max_breakpoints: int

    Maximum number of explicit cache breakpoints per request.

    attribute
    targets: list[str]

    Cacheable sections, e.g. tools, system, or messages; open-ended.

    Provider-advertised opt-in prompt caching, matching models.dev v2.