Cache

fun <K : Any, V> Cache(capacity: Int, source: Obtainable<K, V>)

Constructs cache with specified capacity and single source.

fun <K : Any, V> Cache(capacity: Int, source1: Pair<Obtainable<K, V>, Int>, source2: Pair<Obtainable<K, V>, Int>, vararg sources: Pair<Obtainable<K, V>, Int>)

Constructs cache with specified capacity and multiple sources with priority (less value - more priority): source1, source2 and optional sources.