API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classCacheRoute
One caching rule: which asset types it covers, which stores it uses, and in what order the cache and the network are consulted. Read order is the order the stores were given and is never raced. A race would make which store answered - and therefore which failures surfaced, what was promoted, and what a test observes - depend on timing. Read and write stores are separate lists so a route can read from a tier it never writes (a cache shipped with the application) or write to one it does not read back (an archival mirror).
import { CacheRoute } from '@codexo/exojs'One caching rule: which asset types it covers, which stores it uses, and in what order the cache and the network are consulted.
Read order is the order the stores were given and is never raced. A race would make which store answered - and therefore which failures surfaced, what was promoted, and what a test observes - depend on timing.
Read and write stores are separate lists so a route can read from a tier it never writes (a cache shipped with the application) or write to one it does not read back (an archival mirror).
new(options: CacheRouteOptionsConstruction options for a CacheRoute.): CacheRoutematches(namespace: string): booleanpromote: booleantypes: null | readonly string[]