Skip to content

Interface: ShardStore

A persistent cache for shard files, keyed by data_version and path. The Node entry point provides one on disk (cacheDir); in a browser or Worker the in-memory cache is enough.

read(version, rel): Promise<string | null | undefined>

The cached body: a JSON string, null for a cached 404, undefined for a miss.

string

string

Promise<string | null | undefined>


write(version, rel, body): Promise<void>

string

string

string | null

Promise<void>

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