API reference

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

I

interfaceCacheRouteOptions

@codexo/exojs / assets / stable

Construction options for a CacheRoute.

6
props
0
methods
0
events
Import
import { CacheRouteOptions } from '@codexo/exojs'

Construction options for a CacheRoute.

Properties6
How the cache and the network are ordered. Defaults to CacheFirstPolicy. A CachePolicyResolver chooses per acquisition instead of once, for a decision that depends on something outside the route.
promote?: boolean
Whether a hit in a later read store is copied into the earlier read stores that are also write stores. Off by default: it is a cheap win for a memory tier in front of a persistent one, and pointless everywhere else.
types?: readonly string[]
Asset type ids this route applies to. Omit it for a route that applies to every type that no earlier route claimed.
Source