BundleCacheResolveInput
This content is not available in your language yet.
BundleCache.resolve 的入参:平台地址与令牌,外加缓存键的 appId / 径别 / features 维与 heartbeat 会话 id
appId?
Section titled “appId?”optional appId?: string;缓存键的应用维;缺席退化 per-baseUrl 单条目(见文件头)
baseUrl
Section titled “baseUrl”baseUrl: string;clientFeatures?
Section titled “clientFeatures?”optional clientFeatures?: readonly string[];本次拉取声明的客户端 features(出线头 x-tansr-client-features;缺省 CLIENT_FEATURES 常量)。键含其指纹: 声明变 → 平台投影变 → 键变 → 重拉;bundle 与 heartbeat 同携同值(平台 bundleEtag 按头分档)。
fetchImpl?
Section titled “fetchImpl?”optional fetchImpl?: any;scope?
Section titled “scope?”optional scope?: BundleCacheScope;缓存键的径别维(缺省 ‘app_user’);宿主以主凭据径(自带 AK/SK 头的 fetchImpl)拉 owner 投影并与 令牌径共享同一实例时传 ‘owner’——同 (baseUrl, appId) 两径各得各投影,恒不串档。
sessionId?
Section titled “sessionId?”optional sessionId?: string;首次触发 heartbeat 时随体携带(命中缓存时不出线)
token: string;Was this page helpful?
Thanks for your feedback.