addAll

inline suspend fun Cache.addAll(requests: ReadonlyArray<Request>)(source)

The addAll() method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache. The request objects created during retrieval become keys to the stored response operations.

MDN Reference


inline suspend fun Cache.addAll(urls: ReadonlyArray<JsString>)(source)