NARU API
    Preparing search index...

    Class PersistentPackageCache

    Content-addressed, quota-bounded, least-recently-used cache over a flat byte store. Every manifest mutation runs through one queue so a single instance is deterministic; across instances (two tabs) the manifest is last-writer- wins and entries are self-verifying, so the worst outcome of a race is an unlisted entry, which the next open sweeps.

    Implements

    Index
    quotaBytes: number
    • Deletes every entry and the manifest; the user's clear-cache action.

      Returns Promise<void>

    • Reads the manifest, drops what cannot be trusted, sweeps orphans.

      Returns Promise<void>

    • Marks the open scene's resources; they are never evicted while held.

      Parameters

      • sha256: string

      Returns void

    • Releases every protection, typically before another scene loads.

      Returns void