Cache
Constructors
Cache
Link copied to clipboard
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>)
Content copied to clipboard
Constructs cache with specified capacity and multiple sources with priority (less value - more priority): source1, source2 and optional sources.