AlamofireImage cache?
<p>I use <code>AlamofireImage</code> in conjunction with <code>PromiseKit</code> and <code>Alamofire</code>. I use promises to chain the download of x number of images since I want to do this synchronically. I can't seem to understand if <code>ImageDownloader()</code> caches automatically or if I have to add the image explicitly to the cache? The only examples I've seen so far are not using the <code>ImageDownloader</code> so I have a real hard time finding an answer to this.</p>

<p>If not - how do I add it the cache? I've tried using:</p>

<pre><code>self.imageDownloader.imageCache?.addImage(image, withIdentifier: imageUrl)
</code></pre>

<p>But all it does is increase my memory usage for all eternity(i.e. adding the same image to the cache over and over)</p>