Cache property
jpouderoux opened this issue · 3 comments
Hi,
Could it be possible to add a cache
property, similar to the one provided by the stock Image component?
In particular, I would like to be able to set the only-if-cached
option in some cases - meaning if the image
is not in the cache then it won't try to download it. Otherwise, I could simulate it by myself but only if the
CacheManager
would provide a method to check if a image is in the cache or not.
Thanks for help and this useful library!
Hi @jpouderoux , sounds a valid case. I think it is better to add a method to check if the cache entry exists as it might be used for other cases as well than adding an only-if-cached prop. We will probably do it on the weekend.
I will leave this issue opened till then and get back to you.
You can check the new release V1.3.0. We added the CacheManager.isImageCached
method.
Works great, thanks a lot!