Cache

JS
1.1
abstract class Cache
(source)

Exposes the JavaScript Cache to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript Cache to Kotlin

Cache()

Functions

JS
1.1

add

fun add(request: dynamic): Promise<Unit>
JS
1.1

addAll

fun addAll(requests: Array<dynamic>): Promise<Unit>
JS
1.1

delete

fun delete(
    request: dynamic,
    options: CacheQueryOptions = definedExternally
): Promise<Boolean>
JS
1.1

keys

fun keys(
    request: dynamic = definedExternally,
    options: CacheQueryOptions = definedExternally
): Promise<Array<Request>>
JS
1.1

match

fun match(
    request: dynamic,
    options: CacheQueryOptions = definedExternally
): Promise<Any?>
JS
1.1

matchAll

fun matchAll(
    request: dynamic = definedExternally,
    options: CacheQueryOptions = definedExternally
): Promise<Array<Response>>
JS
1.1

put

fun put(request: dynamic, response: Response): Promise<Unit>