Cache

abstract external class Cache

Exposes the JavaScript Cache to Kotlin

Constructors

Link copied to clipboard
fun Cache()

Functions

Link copied to clipboard
fun add(request: dynamic): Promise<Unit>
Link copied to clipboard
fun addAll(requests: Array<dynamic>): Promise<Unit>
Link copied to clipboard
fun delete(request: dynamic, options: CacheQueryOptions = definedExternally): Promise<Boolean>
Link copied to clipboard
fun keys(request: dynamic = definedExternally, options: CacheQueryOptions = definedExternally): Promise<Array<Request>>
Link copied to clipboard
fun match(request: dynamic, options: CacheQueryOptions = definedExternally): Promise<Any?>
Link copied to clipboard
fun matchAll(request: dynamic = definedExternally, options: CacheQueryOptions = definedExternally): Promise<Array<Response>>
Link copied to clipboard
fun put(request: dynamic, response: Response): Promise<Unit>