CacheConfiguration

data class CacheConfiguration(val cacheDir: File, val maxSize: Long)

Configuration for HTTP caching of network requests.

Constructors

Link copied to clipboard
constructor(cacheDir: File, maxSize: Long)

Properties

Link copied to clipboard

The directory used for caching, e.g., File(application.cacheDir, "http_cache").

Link copied to clipboard

The maximum size of the cache in bits, e.g., 50L * 1024L * 1024L for 50 MiB.