TOC Toolkit API - v0.1.0
    Preparing search index...

    Class ModelCache

    Complete checks live in a bounded LRU, and artifacts follow their owner models.

    Index
    • Parameters

      • capacity: number = 8

      Returns ModelCache

    • get artifacts(): ArtifactCache

      The artifacts of every model that this cache has handed out, by owner. A decision that roots its Budget on it reuses what an earlier decision finished for the same models. The cache holds an owner weakly, so an evicted model frees its artifacts.

      Returns ArtifactCache

    • Removes every retained check and its completed artifacts.

      Returns void