insert
fun insert(url: String, response: String, retrievedAt: Instant = Clock.System.now(), lastModified: Instant?)
Inserts or updates a cached entry.
Parameters
url
The request URL used as the cache key.
response
The raw response body to store.
retrieved At
The timestamp when the response was sent. Defaults to current system time.
last Modified
The timestamp associated with the response, if null the current system time is used.
Inserts or updates a cached entry.
Parameters
data
The CacheData object to persist.