Is your feature request related to a problem? Please describe.
Can you write something doc or example about usage of cache image with Coil ?
I really consider about cache image in Android ( Just refer to Glide cache at link : https://bumptech.github.io/glide/doc/caching.html#cache-keys )
are you looking for this one?
https://github.com/coil-kt/coil/blob/master/docs/faq.md
Also, does Coil have a multi-layered cache and does it support transformation caching? I.e., does it ever cache to memory, besides disk? Does it cache transformed images and not just the source image? These are very important things (to me) that would be really useful (and present in Glide, for example).
If it just caches through OkHttp it might be very limiting but I'm not versed enough in their caching to know so any input is welcome.
I added a section about disk caching to the FAQ here: https://coil-kt.github.io/coil/faq/#how-do-i-set-up-disk-caching
Coil does not support writing Transformations back to the disk cache - they're only cached in memory. This let's us remove a lot of complexity that exists within Glide and let's us avoid re-implementing OkHttp's disk cache.
Coil keeps an in-memory cache for BitmapDrawables, though I'm in the process of adjusting it to support all Drawables.
@colinrtwhite
I have looked into . Thanks!
https://github.com/coil-kt/coil/blob/master/docs/faq.md
btw, does Coil support setting up memory cache for specific image ?
If we configure image cache as above URL. It'll be affect all .
@vegeta2102 You can disable memory caching on a per-request basis like this:
imageView.load(url) {
memoryCachePolicy(CachePolicy.DISABLED)
}
@vegeta2102 You can disable memory caching on a per-request basis like this:
imageView.load(url) { memoryCachePolicy(CachePolicy.DISABLED) }
Was looking for a way to do so.
Maybe should this be documented in the ImageLoaders or Caching part of the docs?
Most helpful comment
@vegeta2102 You can disable memory caching on a per-request basis like this: