ImageLruMemoryCache

class ImageLruMemoryCache(val maxSize: Int = (Runtime.getRuntime().maxMemory() / 1024).toInt() / 8)

Implementation of in-memory cache based on LruCache.

Parameters

maxSize

maximum sum of the sizes of the entries in this cache.

See also

Constructors

Link copied to clipboard
constructor(maxSize: Int = (Runtime.getRuntime().maxMemory() / 1024).toInt() / 8)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
fun getBitmap(key: String): Bitmap?
Link copied to clipboard
fun put(key: String, bitmap: Bitmap)