DiskLruCacheFactory

open fun DiskLruCacheFactory(diskCacheFolder: String, diskCacheSize: Long)
open fun DiskLruCacheFactory(    diskCacheFolder: String,     diskCacheName: String,     diskCacheSize: Long)


open fun DiskLruCacheFactory(cacheDirectoryGetter: DiskLruCacheFactory.CacheDirectoryGetter, diskCacheSize: Long)

When using this constructor getCacheDirectory will be called out of UI thread, allowing to do I/O access without performance impacts.

Parameters

cacheDirectoryGetter

Interface called out of UI thread to get the cache folder.

diskCacheSize

Desired max bytes size for the LRU disk cache.