DiskLruCacheFactory

open class DiskLruCacheFactory : DiskCache.Factory

Creates an com.bumptech.glide.disklrucache.DiskLruCache based disk cache in the specified disk cache directory.

If you need to make I/O access before returning the cache directory use the DiskLruCacheFactory constructor variant.

Constructors

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

Types

Link copied to clipboard
interface CacheDirectoryGetter
Interface called out of UI thread to get the cache folder.

Functions

Link copied to clipboard
open fun build(): DiskCache
Returns a new disk cache, or null if no disk cache could be created.

Properties

Link copied to clipboard
val DEFAULT_DISK_CACHE_DIR: String
Link copied to clipboard
val DEFAULT_DISK_CACHE_SIZE: Int
250 MB of cache.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard