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?
optionalrefreshIfOlderThanMs?:number
refreshNetwork?
optionalrefreshNetwork?:boolean
serverTimeoutMs?
optionalserverTimeoutMs?:number
waitForLoad?
optionalwaitForLoad?:WaitForLoadMode