Skip to content

CacheStorage

Values

delete

let delete: (
WebAPI.ServiceWorkerAPI.cacheStorage,
string,
) => Promise.t<bool>

Parameters

WebAPI.ServiceWorkerAPI.cacheStorage string

Return type

Promise.t< bool >

has

let has: (
WebAPI.ServiceWorkerAPI.cacheStorage,
string,
) => Promise.t<bool>

Parameters

WebAPI.ServiceWorkerAPI.cacheStorage string

Return type

Promise.t< bool >

keys

let keys: WebAPI.ServiceWorkerAPI.cacheStorage => Promise.t<
array<string>,
>

Parameters

WebAPI.ServiceWorkerAPI.cacheStorage

Return type

Promise.t< array< string > >

match

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

match2

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

open_

let open_: (
WebAPI.ServiceWorkerAPI.cacheStorage,
string,
) => Promise.t<WebAPI.ServiceWorkerAPI.cache>

Parameters

WebAPI.ServiceWorkerAPI.cacheStorage string

Return type

Promise.t< WebAPI.ServiceWorkerAPI.cache >