CaffeineResponseCache
fun CaffeineResponseCache(configure: CaffeineResponseCache.Builder.() -> Unit = {}): CaffeineResponseCache(source)
Builds a CaffeineResponseCache. Stable Core. CaffeineResponseCache { maxWeight = 5_000 }; without the lambda every property has its default.
Return
the cache; the caller closes it.
Parameters
configure
assigns the properties to change.
Throws
if maxWeight is below 1; the message names the property and never a value.