Cache

@native @JSGlobal @JSType
abstract class Cache extends Object

See ΒΆ5.4 cache of ServiceWorker whatwg spec.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Abstract methods

def keys(request: UndefOr[RequestInfo], options: UndefOr[CacheQueryOptions]): Promise[Array[Request]]

Concrete methods

def `match`(request: RequestInfo, options: UndefOr[CacheQueryOptions]): Promise[UndefOr[Response]]
def add(request: RequestInfo): Promise[Unit]
def addAll(requests: Array[RequestInfo]): Promise[Unit]
def delete(request: RequestInfo, options: UndefOr[CacheQueryOptions]): Promise[Boolean]
def matchAll(request: RequestInfo, options: UndefOr[CacheQueryOptions]): Promise[Array[Response]]
def put(request: RequestInfo, response: Response): Promise[Unit]

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object