CacheStrategy
Controls the behavior around reading/writing responses from/to the disk cache.
Types
Functions
Link copied to clipboard
abstract suspend fun read(cacheResponse: NetworkResponse, networkRequest: NetworkRequest, options: Options): CacheStrategy.ReadResult
Link copied to clipboard
abstract suspend fun write(cacheResponse: NetworkResponse?, networkRequest: NetworkRequest, networkResponse: NetworkResponse, options: Options): CacheStrategy.WriteResult