Automatic Prefix Caching

Prefix reuse is the engine's default, and the repeated prefix computation lesson closed on two readings of it that make no sense next to each other. Three requests sharing almost all of their text queried the cache for 48 tokens and hit on none of them. Two other requests sharing a run of 266 tokens were answered with 256, not…

In this lesson

  • A block's identity
  • The lookup at admission
  • The counters and the log field
  • One request's view of the cache
  • A free block that is still findable

Continue learning

Pro unlocks the complete lesson, video, practice, and code where available.