ResponseCache

interface ResponseCache

Stores raw response bodies. Keys never contain an API key. Implement this to back the cache with Redis, a database, disk, etc.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun get(key: String): String?
Link copied to clipboard
abstract suspend fun put(key: String, body: String, ttl: Duration)