K Retrostash 0.0.13: annotation-driven caching for Retrofit, OkHttp, and Ktor on Kotlin Multiplatform.
Stock OkHttp cache only handles GET. POST queries (GraphQL, search, anything with a request body) bypass it. And no client gives you mutation-driven invalidation — when a POST mutates the server, you flush specific cached entries by hand.
Retrostash fixes both. Annotate the function, declare which mutations invalidate which queries, get a typed cache that survives across Retrofit, OkHttp, and Ktor.
Targets: Android, JVM, iOS, wasmJs.
Maven Central + Swift Package Manager.
Repo:
github.com/logickoder/retrostash
Docs:
logickoder.dev/retrostash
Tell me what breaks.