diskCacheStrategy

open fun diskCacheStrategy(strategy: DiskCacheStrategy): T

Sets the DiskCacheStrategy to use for this load.

Defaults to AUTOMATIC.

For most applications RESOURCE is ideal. Applications that use the same resource multiple times in multiple sizes and are willing to trade off some speed and disk space in return for lower bandwidth usage may want to consider using DATA or ALL.

Return

This request builder.

Parameters

strategy

The strategy to use.


open val diskCacheStrategy: DiskCacheStrategy