LRUCache

class LRUCache<K, V>(val capacity: Int)(source)

Constructors

Link copied to clipboard
constructor(capacity: Int)

Functions

Link copied to clipboard
fun get(key: K): V?
Link copied to clipboard
fun getOrSet(key: K, forceSet: Boolean, valueFunction: () -> V): V
Link copied to clipboard
fun set(key: K, value: V)

Properties

Link copied to clipboard
Link copied to clipboard
val map: MutableMap<K, V>
Link copied to clipboard