Skip to main content

Module cache

Module cache 

Source
Expand description

Content-addressable caching — keys, traits, and metadata.

CacheKey is a SHA-256 hash of computation inputs. Two cache keys:

  • State key: hash(config + training_data) — for fit() results
  • Output key: hash(config + state + input) — for forward() results

CacheStore is the K/V interface; implementations live in soma-runtime.

Structs§

CacheKey
Content-addressable hash identifying a computation.
EntryMeta
Metadata about a cached entry, queryable without loading the value.

Enums§

CacheTier
Which storage tier a cached entry lives in.
Origin
Where a cached value originated.

Traits§

CacheStore
The K/V cache store interface.