API reference

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

I

interfaceCachePolicyResolutionContext

@codexo/exojs / assets / stable

What a CachePolicyResolver is told about the acquisition it is choosing a policy for.

3
props
0
methods
0
events
Import
import { CachePolicyResolutionContext } from '@codexo/exojs'

What a CachePolicyResolver is told about the acquisition it is choosing a policy for.

Properties3
namespace: string
The storage namespace of the acquisition, which is the asset type's id.
network: NetworkSnapshot
The connectivity facts this acquisition starts under, as the loader knew them at that moment. A snapshot rather than the service itself. A resolver therefore cannot subscribe to connectivity, cannot outlive the decision, and cannot be bound to one application - which is what lets one AssetCache be shared between applications that disagree about whether they may use the network.
sourceKey: string
The source identity being acquired.
Source