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.
Methods
Section titled “Methods”read()
Section titled “read()”read(
version,rel):Promise<string|null|undefined>
The cached body: a JSON string, null for a cached 404, undefined for a miss.
Parameters
Section titled “Parameters”version
Section titled “version”string
string
Returns
Section titled “Returns”Promise<string | null | undefined>
write()
Section titled “write()”write(
version,rel,body):Promise<void>
Parameters
Section titled “Parameters”version
Section titled “version”string
string
string | null
Returns
Section titled “Returns”Promise<void>
This product uses the TMDB API but is not endorsed or certified by TMDB.