Skip to main content

Module cache

Module cache 

Source
Expand description

Per-row inference result cache, keyed (content_hash, model_id, params_version).

The composite key ensures different models and parameter sets never collide on the same input. Backed by quick_cache::sync::Cache with S3-FIFO eviction.

Structs§

AiCacheKey
Cache key. All fields are Copy; lookups need no allocation.
AiResultCache
quick_cache-backed in-memory cache of per-row inference results.
AiResultCacheConfig
Configuration for AiResultCache.

Enums§

CachedOutput
One row’s cached inference output.

Functions§

content_hash
xxh3-128 of the input content.
params_version
Hash of the parameters that affect model output (currently the label set).