跳到主要内容Skip to main content

缓存策略Caching Strategy

Caching Strategy

  • 选型与成本Selection & cost
  • 第六站 · 选得对Station 6 · Choosing Right
解决什么问题What problem it solves

重复的内容不重复计算,直接复用。这是降本的第一手段。Do not recompute repeated content; reuse it directly. The first lever for cutting cost.

这是什么What it is

缓存重复的输入与结果,减少重复调用与计算。

Caching repeated inputs and results to avoid duplicate calls and computation.

为什么需要知道Why it matters

它对成本的影响往往大于选一个更便宜的模型。Its effect on cost is often larger than choosing a cheaper model.

出处Sources
  • Claude 提示词缓存Anthropic prompt caching docs ↗