select

fun select(url: String): String?

Selects a cached response for a given URL.

If an expiry is set, only entries that have not expired will be retrieved.

Return

The cached response as a string, or null if no valid entry exists.

Parameters

url

The URL whose cached response is to be retrieved.