API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classCacheRoute

@codexo/exojs / assets / stable

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).

5
props
1
methods
0
events
Import
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).

Constructors1
Methods1
matches(namespace: string): boolean
Whether this route claims namespace.
Properties5
The policy, or the resolver that picks one per acquisition.
promote: boolean
types: null | readonly string[]
The asset type ids this route claims, or null when it claims every type.
Source