CacheStrategy

Controls the behavior around reading/writing responses from/to the disk cache.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard

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