Jose M Lechon
Jose M Lechon

Reputation: 5896

Android Glide alternate cache in memory or disk

I´m working in an App which does have images that are used quite often, however there are others download used only once.

Does Glide have any way for deciding on the fly which images should be stored only in Disk or only in memory?

As far as I´ve seen it does the cache depends on the configuration buy I´de like to be able to say by myself which ones should be in disk and which ones no.

Upvotes: 3

Views: 925

Answers (1)

Sam Judd
Sam Judd

Reputation: 7387

You can use .diskCacheStrategy() to manually control whether and how an individual request is cached on disk and skipMemoryCache() to control whether an individual request is cached in memory.

Upvotes: 3

Related Questions