Cache
Generated.swift:1367class Cache
class Cache
import DOM
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
required init(unsafelyWrapping jsObject: JSObject)
class var constructor: JSFunction? { get }
let jsObject: JSObject
func add(request: RequestInfo) -> JSPromise
func add(request: RequestInfo) async throws
func addAll(requests: [RequestInfo]) -> JSPromise
func addAll(requests: [RequestInfo]) async throws
func delete(request: RequestInfo, options: CacheQueryOptions? = nil) -> JSPromise
func delete(request: RequestInfo, options: CacheQueryOptions? = nil) async throws -> Bool
func keys(request: RequestInfo? = nil, options: CacheQueryOptions? = nil) -> JSPromise
func keys(request: RequestInfo? = nil, options: CacheQueryOptions? = nil) async throws -> [Request]
func match(request: RequestInfo, options: CacheQueryOptions? = nil) -> JSPromise
func match(request: RequestInfo, options: CacheQueryOptions? = nil) async throws -> Response?
func matchAll(request: RequestInfo? = nil, options: CacheQueryOptions? = nil) -> JSPromise
func matchAll(request: RequestInfo? = nil, options: CacheQueryOptions? = nil) async throws -> [Response]
func put(request: RequestInfo, response: Response) -> JSPromise
func put(request: RequestInfo, response: Response) async throws
init?(from value: JSValue)
init?(from object: JSObject)
static func construct(from value: JSValue) -> Self?
var description: String { get }
var jsValue: JSValue { get }
func jsValue() -> JSValue