RetrostashConfig

Configuration for RetrostashPlugin. Set within install(RetrostashPlugin) { ... }:

val client = HttpClient {
install(RetrostashPlugin) {
store = InMemoryRetrostashStore()
timeoutMs = 250
logger = { println(it) }
}
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var logger: (String) -> Unit?

Optional event hook — receives "retrostash: hit/miss/persisted/invalidated" lines. Useful for debugging cache behavior.

Link copied to clipboard

Backing cache. Required — if null, the plugin installs as a no-op.

Link copied to clipboard

Per-store-call deadline in milliseconds. Slow store calls fall through to the network rather than blocking the request.