LruCache

expect open class LruCache<K : Any, V : Any>(maxSize: Int)
actual open class LruCache<K : Any, V : Any>(maxSize: Int)

Constructors

Link copied to clipboard
expect constructor(maxSize: Int)
actual constructor(maxSize: Int)

Functions

Link copied to clipboard
expect fun evictAll()
actual fun evictAll()
Link copied to clipboard
expect operator fun get(key: K): V?
actual operator fun get(key: K): V?
Link copied to clipboard
expect fun maxSize(): Int
actual fun maxSize(): Int
Link copied to clipboard
expect fun put(key: K, value: V): V?
actual fun put(key: K, value: V): V?
Link copied to clipboard
expect fun remove(key: K): V?
actual fun remove(key: K): V?
Link copied to clipboard
open fun resize(maxSize: Int)
Link copied to clipboard
expect fun size(): Int
actual fun size(): Int
Link copied to clipboard
expect fun snapshot(): MutableMap<K, V>
actual fun snapshot(): MutableMap<K, V>
Link copied to clipboard
open fun trimToSize(maxSize: Int)