Cache

abstract external class Cache (source)

Platform and version requirements: JS

Exposes the JavaScript Cache to Kotlin

Constructors

<init>

Cache()

Exposes the JavaScript Cache to Kotlin

Functions

add

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

addAll

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

delete

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

keys

fun keys(
    request: dynamic = definedExternally,
    options: CacheQueryOptions = definedExternally
): Promise<dynamic>

match

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

matchAll

fun matchAll(
    request: dynamic = definedExternally,
    options: CacheQueryOptions = definedExternally
): Promise<dynamic>

put

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

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.