keys

inline suspend fun Cache.keys(url: String, options: CacheQueryOptions): ReadonlyArray<Request>(source)
inline suspend fun Cache.keys(url: String): ReadonlyArray<Request>(source)
inline suspend fun Cache.keys(): ReadonlyArray<Request>(source)

The keys() method of the Cache interface returns a Promise that resolves to an array of Request objects representing the keys of the Cache.

MDN Reference


inline suspend fun Cache.keys(url: URL, options: CacheQueryOptions): ReadonlyArray<Request>(source)
inline suspend fun Cache.keys(url: URL): ReadonlyArray<Request>(source)
inline suspend fun Cache.keys(request: Request, options: CacheQueryOptions): ReadonlyArray<Request>(source)
inline suspend fun Cache.keys(request: Request): ReadonlyArray<Request>(source)


The keys() method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.

MDN Reference