Cache

abstract class Cache : JsAny

Exposes the JavaScript Cache to Kotlin

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun add(request: String): Promise<Nothing?>
fun add(request: Request): Promise<Nothing?>
Link copied to clipboard
fun addAll(requests: JsArray<JsAny?>): Promise<Nothing?>
Link copied to clipboard
fun delete(request: String, options: CacheQueryOptions): Promise<*>
fun delete(request: Request, options: CacheQueryOptions): Promise<*>
Link copied to clipboard
fun keys(): Promise<*>
fun keys(request: String, options: CacheQueryOptions): Promise<*>
fun keys(request: Request, options: CacheQueryOptions): Promise<*>
Link copied to clipboard
fun match(request: String, options: CacheQueryOptions): Promise<*>
fun match(request: Request, options: CacheQueryOptions): Promise<*>
Link copied to clipboard
fun matchAll(): Promise<*>
fun matchAll(request: String, options: CacheQueryOptions): Promise<*>
fun matchAll(request: Request, options: CacheQueryOptions): Promise<*>
Link copied to clipboard
fun put(request: String, response: Response): Promise<Nothing?>
fun put(request: Request, response: Response): Promise<Nothing?>