insert

fun insert(url: String, response: String)

Inserts a new cached response for a given URL.

If an entry for the URL already exists, the method does nothing.

Parameters

url

The URL whose response is to be cached.

response

The response to cache as a string.