Companion

object Companion

Functions

lru
Link copied to clipboard
common
fun <K, V> lru(capacity: Int = 5): Cache<K, V>
Creates a new LRU (least recently used) cache
simpleLru
Link copied to clipboard
common
fun <K, V> simpleLru(capacity: Int = 5): Cache<K, V>
Creates a new LRU (least recently used) cache, using a simpler (less memory-consuming) implementation