LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithutilsprompt_cacheCacheConfig
Interface●Since v0.7

CacheConfig

Configuration options for Cache.

Copy
interface CacheConfig

Properties

property
maxSize: number

Maximum entries in cache (LRU eviction when exceeded). Default: 100

property
refreshIntervalSeconds: number

How often to check for stale entries in seconds. Default: 60

property
ttlSeconds: number | null

Maximum lifetime in seconds from creation. The sandbox is deleted after this duration. Must be a multiple of 60, or 0/undefined to disable or omit.

View source on GitHub