DiskLruCacheFactory
open fun DiskLruCacheFactory(diskCacheFolder: String, diskCacheSize: Long)
Content copied to clipboard
open fun DiskLruCacheFactory( diskCacheFolder: String, diskCacheName: String, diskCacheSize: Long)
Content copied to clipboard
open fun DiskLruCacheFactory(cacheDirectoryGetter: DiskLruCacheFactory.CacheDirectoryGetter, diskCacheSize: Long)
Content copied to clipboard
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.