cacophony
    Preparing search index...

    Class AudioCache

    HTTP policy governs decoded memory entries and persistent response bytes. Bytes and versioned policy share ONE Cache API response, preventing split writes. Legacy v1 entries are not read. Memory is bounded per decoding context.

    Implements

    • ICache
    Index
    • Returns void

    • Parameters

      • context: BaseContext
      • url: string
      • Optionalsignal: AbortSignal
      • Optionalcallbacks: CacheCallbacks

      Returns Promise<AudioBuffer>

    • Fallback for new responses with no cache directives, expiry, or validators. Existing memory and persistent policies retain their original lifetime.

      Parameters

      • time: number

      Returns void

      If time is negative or non-finite.