ImageLruDiskCache
class ImageLruDiskCache(context: Context, cacheFolder: String, maxSizeBytes: Long = 10L * 1024 * 1024)
Implementation of disk cache based on DiskLruCache.
See also
DiskLruCache
Parameters
cacheFolder
name of the folder that will store the images of this cache. It will create a cache if none exists there.
maxSizeBytes
the maximum number of bytes this cache should use to store
Throws
if reading or writing the cache directory fails
Constructors
Link copied to clipboard
fun ImageLruDiskCache(context: Context, cacheFolder: String, maxSizeBytes: Long = 10L * 1024 * 1024)