put

inline suspend fun Cache.put(url: String, response: Response)(source)

The put() method of the Cache interface allows key/value pairs to be added to the current Cache object.

MDN Reference


inline suspend fun Cache.put(url: URL, response: Response)(source)
inline suspend fun Cache.put(request: Request, response: Response)(source)