chiitiler - v2.0.1
    Preparing search index...

    Type Alias Cache

    Where fetched source bytes are kept (implement get and set to bring your own). Keys are resource URLs. Only http(s) sources (including pmtiles://http(s):// tiles) use it; The front cache (see withFrontCache) serves every source.

    type Cache = {
        front?: Cache;
        get: (key: string) => Promise<Value | undefined>;
        name?: string;
        set: (key: string, value: Value) => Promise<void>;
    }
    Index
    front?: Cache

    Short-lived in-process layer (set by withFrontCache), applied to every source.

    get: (key: string) => Promise<Value | undefined>

    The bytes stored under key, or undefined for a miss.

    name?: string

    A label (built-in caches name their kind).

    set: (key: string, value: Value) => Promise<void>

    Store value under key. It may reject: Chiitiler logs the failure and carries on.