For persistent caching on ktor client we got `File...
# ktor
h
For persistent caching on ktor client we got
FileStorage
for Andorid and JVM. There is nothing ready-made to be used for iOS, right?
What would the best approach be here? Implementing
CacheStorage
on iOS seems cumbersome, and there are APIs for configuring caching for URLSession.
a
There is nothing ready-made to be used for iOS, right?
Yes, there is no such out-of-the-box solution for Darwin. I think configuring caching with NSURLSessionConfiguration is a good idea. The Darwin engine config has methods for configuring the session and its configuration.
I’m implementing the Ktor Caching API but for KMP.
h
Thanks, but I would prefer using the native APIs in iOS first. We also want the cache managed by the system
f
Yes, so the @Aleksei Tirman [JB] solution is the best way for you