CacheStorage

sealed external class CacheStorage(source)

The storage for Cache objects. Available only in secure contexts.

MDN Reference

Functions

Link copied to clipboard
suspend fun delete(cacheName: String): Boolean
Link copied to clipboard
fun deleteAsync(cacheName: String): Promise<Boolean>
Link copied to clipboard
suspend fun has(cacheName: String): Boolean
Link copied to clipboard
fun hasAsync(cacheName: String): Promise<Boolean>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun match(request: String, options: MultiCacheQueryOptions = definedExternally): Response?
suspend fun match(request: URL, options: MultiCacheQueryOptions = definedExternally): Response?

suspend fun match(request: Request, options: MultiCacheQueryOptions = definedExternally): Response?
Link copied to clipboard
fun matchAsync(request: String, options: MultiCacheQueryOptions = definedExternally): Promise<Response?>
fun matchAsync(request: Request, options: MultiCacheQueryOptions = definedExternally): Promise<Response?>
fun matchAsync(request: URL, options: MultiCacheQueryOptions = definedExternally): Promise<Response?>
Link copied to clipboard
suspend fun open(cacheName: String): Cache
Link copied to clipboard
fun openAsync(cacheName: String): Promise<Cache>