CacheData

data class CacheData(val url: String, val response: String, val retrievedAt: Instant, val lastModified: Instant)

Represents a cached API response along with its associated metadata.

Constructors

Link copied to clipboard
constructor(url: String, response: String, retrievedAt: Instant, lastModified: Instant)

Properties

Link copied to clipboard

The last-modified timestamp reported by the server.

Link copied to clipboard

The raw response body returned by the API.

Link copied to clipboard

The time at which the response was originally retrieved.

Link copied to clipboard
val url: String

The request URL used as the cache key.