Interface Cache

Interface for caches of parts (headers, directories) of a PMTiles archive.

interface Cache {
    getDirectory: ((source, offset, length, header, signal?) => Promise<Entry[]>);
    getHeader: ((source) => Promise<Header>);
    invalidate: ((source) => Promise<void>);
}

Properties

getDirectory: ((source, offset, length, header, signal?) => Promise<Entry[]>)

Type declaration

    • (source, offset, length, header, signal?): Promise<Entry[]>
    • Parameters

      • source: Source
      • offset: number
      • length: number
      • header: Header
      • Optional signal: AbortSignal

      Returns Promise<Entry[]>

getHeader: ((source) => Promise<Header>)

Type declaration

invalidate: ((source) => Promise<void>)

Type declaration

    • (source): Promise<void>
    • Parameters

      Returns Promise<void>

Generated using TypeDoc