Skip to content

Cache

Values

add

let add: (
WebAPI.ServiceWorkerAPI.cache,
WebAPI.FetchAPI.request,
) => Promise.t<unit>

Parameters

WebAPI.ServiceWorkerAPI.cache WebAPI.FetchAPI.request

Return type

Promise.t< unit >

add2

let add2: (WebAPI.ServiceWorkerAPI.cache, string) => Promise.t<unit>

Parameters

WebAPI.ServiceWorkerAPI.cache string

Return type

Promise.t< unit >

addAll

let addAll: (
WebAPI.ServiceWorkerAPI.cache,
array<WebAPI.ServiceWorkerAPI.requestInfo>,
) => Promise.t<unit>

Parameters

WebAPI.ServiceWorkerAPI.cache array< WebAPI.ServiceWorkerAPI.requestInfo >

Return type

Promise.t< unit >

delete

let delete: (
WebAPI.ServiceWorkerAPI.cache,
~request: WebAPI.FetchAPI.request,
~options: WebAPI.ServiceWorkerAPI.cacheQueryOptions=?,
) => Promise.t<bool>

delete2

let delete2: (
WebAPI.ServiceWorkerAPI.cache,
~request: string,
~options: WebAPI.ServiceWorkerAPI.cacheQueryOptions=?,
) => Promise.t<bool>

Parameters

WebAPI.ServiceWorkerAPI.cache string option< WebAPI.ServiceWorkerAPI.cacheQueryOptions >

Return type

Promise.t< bool >

keys

let keys: (
WebAPI.ServiceWorkerAPI.cache,
~request: WebAPI.FetchAPI.request=?,
~options: WebAPI.ServiceWorkerAPI.cacheQueryOptions=?,
) => Promise.t<array<WebAPI.FetchAPI.request>>

keys2

let keys2: (
WebAPI.ServiceWorkerAPI.cache,
~request: string=?,
~options: WebAPI.ServiceWorkerAPI.cacheQueryOptions=?,
) => Promise.t<array<WebAPI.FetchAPI.request>>

Parameters

WebAPI.ServiceWorkerAPI.cache option< string > option< WebAPI.ServiceWorkerAPI.cacheQueryOptions >

Return type

Promise.t< array< WebAPI.FetchAPI.request > >

match

let match: (
WebAPI.ServiceWorkerAPI.cache,
~request: WebAPI.FetchAPI.request,
~options: WebAPI.ServiceWorkerAPI.cacheQueryOptions=?,
) => Nullable.t<WebAPI.FetchAPI.response>

match2

let match2: (
WebAPI.ServiceWorkerAPI.cache,
~request: string,
~options: WebAPI.ServiceWorkerAPI.cacheQueryOptions=?,
) => Nullable.t<WebAPI.FetchAPI.response>

matchAll

let matchAll: (
WebAPI.ServiceWorkerAPI.cache,
~request: WebAPI.FetchAPI.request=?,
~options: WebAPI.ServiceWorkerAPI.cacheQueryOptions=?,
) => Promise.t<array<WebAPI.FetchAPI.response>>

matchAll2

let matchAll2: (
WebAPI.ServiceWorkerAPI.cache,
~request: string=?,
~options: WebAPI.ServiceWorkerAPI.cacheQueryOptions=?,
) => Promise.t<array<WebAPI.FetchAPI.response>>

Parameters

WebAPI.ServiceWorkerAPI.cache option< string > option< WebAPI.ServiceWorkerAPI.cacheQueryOptions >

Return type

Promise.t< array< WebAPI.FetchAPI.response > >

put

let put: (
WebAPI.ServiceWorkerAPI.cache,
~request: WebAPI.FetchAPI.request,
~response: WebAPI.FetchAPI.response,
) => Promise.t<unit>

put2

let put2: (
WebAPI.ServiceWorkerAPI.cache,
~request: string,
~response: WebAPI.FetchAPI.response,
) => Promise.t<unit>

Parameters

WebAPI.ServiceWorkerAPI.cache string WebAPI.FetchAPI.response

Return type

Promise.t< unit >