add

inline suspend fun Cache.add(url: String)(source)

The add() method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache.

MDN Reference


inline suspend fun Cache.add(url: URL)(source)
inline suspend fun Cache.add(request: Request)(source)