kiavashfaisali / KFSwiftImageLoader

An extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memory and disk caching for iOS and  Watch.
MIT License
341 stars 35 forks source link

Managing Memory #15

Open csurbier opened 7 years ago

csurbier commented 7 years ago

Hi,

All the images are placed in memory but we have no methods to clean or set the cache size. So when browsing long list of imageviews, the memory is increasing more and more (until we reach a memory warning). Will it be possible to have a method to set the cache memory size OR to clean the memory.

Thanks Christophe

kiavashfaisali commented 7 years ago

Hello,

Yes this is a good suggestion, I will add in this feature for the next release with both enhancements (user limiting mem-cache and purge-on-demand methods).