retrostash-ktor
Ktor HttpClient plugin with parallel semantics to the OkHttp adapter. Targets Android, JVM, iOS, and wasmJs.
Entry points
RetrostashPlugin— the Ktor client plugin. Install viainstall(RetrostashPlugin) { store = ...; timeoutMs = ...; logger = ... }.RetrostashConfig— plugin configuration.RetrostashKtorRuntime— adapter that bridges per-request metadata to the core engine; exposesinvalidateTag,invalidateTags.RetrostashKtorMetadataand theretrostash,retrostashQuery,retrostashMutatebuilder extensions for attaching cache metadata to aHttpRequestBuilder.
Notes
Ktor's HttpClient does not ship a built-in HTTP disk cache the way OkHttp does, so the dual-cache footgun documented for the OkHttp adapter does not apply here. Retrostash is the authoritative cache for Ktor consumers.
See also
The full README, including caching strategy (OkHttp-specific guidance, for context).
retrostash-annotationsfor@CacheQuery/@CacheMutate.retrostash-coreforRetrostashStore/RetrostashEngine.