LruResourceCache
An LRU in memory cache for com.bumptech.glide.load.engine.Resources.
Constructors
Functions
Link copied to clipboard
Clears all items in the cache.
Link copied to clipboard
Link copied to clipboard
Removes the value for the given key and returns it if present or null otherwise.
Removes the item at the given key and returns the removed item if present, and null otherwise.
Link copied to clipboard
open fun setResourceRemovedListener(listener: MemoryCache.ResourceRemovedListener)
Content copied to clipboard
Set the listener to be called when a bitmap is removed from the cache.
Link copied to clipboard
Sets a size multiplier that will be applied to the size provided in the constructor to put the new size of the cache.
Link copied to clipboard
Trim the memory cache to the appropriate level.