Skip to main content

cacheRead

@forge/monorepo


@forge/monorepo / backend/src / cacheRead

Function: cacheRead()

cacheRead(usage): number

Defined in: backend/src/models/streaming.ts:397

The cache-read count, from wherever the provider put it — task #247.

Exported so the arithmetic is testable without a provider: the whole defect this fixes was a field name that did not exist, which no amount of testing through a fake could reveal.

Parameters

usage

Record<string, unknown>

Returns

number