diskCache

Set the DiskCache.

NOTE: By default, ImageLoaders share the same disk cache instance. This is necessary as having multiple disk cache instances active in the same directory at the same time can corrupt the disk cache.

See also


fun diskCache(initializer: () -> DiskCache?): ImageLoader.Builder

Set a lazy callback to create the DiskCache.

Prefer using this instead of diskCache(DiskCache).

NOTE: By default, ImageLoaders share the same disk cache instance. This is necessary as having multiple disk cache instances active in the same directory at the same time can corrupt the disk cache.

See also