Builder

class Builder<K : Any, V : Any>

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun capacity(size: Int)
Link copied to clipboard
fun defaultDispatcher(dispatcher: <Error class: unknown class>)
Link copied to clipboard
fun defaultScope(scope: <Error class: unknown class>)
Link copied to clipboard
fun expirySizeBased(maxSize: Long)
fun expirySizeBased(maxWeight: Long, weigher: (K, V) -> Int)
Link copied to clipboard
fun expiryTimeBased(afterWrite: <Error class: unknown class>? = null, afterAccess: <Error class: unknown class>? = null)
fun expiryTimeBased(afterWrite: (key: K, value: V, currentTime: Instant) -> <Error class: unknown class>, afterRead: (key: K, value: V, currentTime: Instant, <Error class: unknown class>) -> <Error class: unknown class>)
Link copied to clipboard
fun removalListener(dispatcher: <Error class: unknown class>, block: suspend (K?, V?, Cache.RemovalCause) -> Unit)
fun removalListener(scope: <Error class: unknown class>, block: suspend (K?, V?, Cache.RemovalCause) -> Unit)
Link copied to clipboard
fun ticker(block: () -> Long)