MCPcopy Create free account
hub / github.com/alibaba/open-code-review / TotalCacheWriteTokens

Method TotalCacheWriteTokens

internal/llmloop/loop.go:75–75  ·  view source on GitHub ↗

TotalCacheWriteTokens returns the accumulated cache write tokens.

()

Source from the content-addressed store, hash-verified

73
74// TotalCacheWriteTokens returns the accumulated cache write tokens.
75func (r *Runner) TotalCacheWriteTokens() int64 { return atomic.LoadInt64(&r.totalCacheWriteTokens) }
76
77// TotalTokensUsed returns input + output.
78func (r *Runner) TotalTokensUsed() int64 {

Callers 1

TestRunner_RecordUsageFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestRunner_RecordUsageFunction · 0.76