CacheConfig

data class CacheConfig(val directory: File, val cacheDurationFilter: Map<String, Duration> = emptyMap(), val maxSizeInBytes: Long = DEFAULT_MAX_CACHE_SIZE)

HttpHandler cache configuration.

Constructors

Link copied to clipboard
fun CacheConfig(directory: File, cacheDurationFilter: Map<String, Duration> = emptyMap(), maxSizeInBytes: Long = DEFAULT_MAX_CACHE_SIZE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Mapping of the data duration in cache to the corresponding request URL filter.

Link copied to clipboard

Directory that should be used for caching.

Link copied to clipboard

Configures maximum number of bytes that cache should use to store its data. Must be greater than 0. Defaults to 10 MB.