HttpClientCache

constructor(maxCacheSize: Int = 100, maxAge: Duration = 30.minutes, maxIdleTime: Duration = 10.minutes, cleanupInterval: Duration = 5.minutes)(source)

Parameters

maxCacheSize

maximum number of cached clients

maxAge

maximum lifetime of a cache entry

maxIdleTime

maximum idle time before an entry is considered expired

cleanupInterval

interval between background cleanup sweeps