addAll method
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.
Note:
addAll()
will overwrite any key/value pairs previously stored in the cache that match the request, but will fail if a resultingput()
operation would overwrite a previous cache entry stored by the sameaddAll()
method.
Implementation
external JSPromise<JSAny?> addAll(JSArray<RequestInfo> requests);