Skip to content

js-bao-wss-client


js-bao-wss-client / FetchCachedOptions

Interface: FetchCachedOptions ​

Options for cache-backed fetches. waitForLoad picks the read strategy (default "localIfAvailableElseNetwork"); refreshNetwork forces a background server refresh even when the cached value is returned; refreshIfOlderThanMs triggers that background refresh only when the cached value is at least this old; serverTimeoutMs bounds the network fetch (default 10000, 0 disables the timeout).

Properties ​

refreshIfOlderThanMs? ​

optional refreshIfOlderThanMs?: number


refreshNetwork? ​

optional refreshNetwork?: boolean


serverTimeoutMs? ​

optional serverTimeoutMs?: number


waitForLoad? ​

optional waitForLoad?: WaitForLoadMode

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30