Skip to content

Interface: NodeRemoteOptions

optional cacheDir?: string

On-disk cache directory. Files are stored under /<data_version>/, so a new data version starts a fresh cache.


optional fetch?: (input, init?) => Promise<Response>

Defaults to the global fetch.

string | URL | Request

RequestInit

Promise<Response>

RemoteOptions.fetch


optional metaMaxAgeMs?: number

How long meta.json is trusted before it is fetched again. Default: one hour (the caching contract).

RemoteOptions.metaMaxAgeMs


optional now?: () => number

Clock, for tests.

number

RemoteOptions.now


optional store?: ShardStore

Persistent cache beyond memory.

RemoteOptions.store

This product uses the TMDB API but is not endorsed or certified by TMDB.