S
Sonny
Text
Applying the Rules That Make a Prompt Cache Hit — Building with the Claude API
A cache hit needs an exact prefix match, a minimum token count, and a live TTL. Order a prompt stable-first, place breakpoints deliberately, and read the usage fields that report whether the cache wa…