
Add ImageResponse.CacheType to address #361 and #435. Add containsData(for:) method to DataCaching and DataCache which checks if the data exists without bringing it to memory. Add removeAll() method to ImageCaching and DataCaching protocols. Add (aggressive disk cache enabled) and withURLCache (HTTP disk cache enabled) to make it easier to set up a pipeline with a configuration you want. Add ImagePipeline.Cache with a whole range of convenience APIs for managing cached images: read, write, remove images from all cache layers. You can learn more about the policies and other caching changes in "Caching: Cache Policy." automatic policy: for requests with processors, encode and store processed images for requests with no processors, store original image data. The new policy fixes some of the inefficiencies of the previous model and provides more control. Add DataCachePolicy to replace deprecated DataCacheOptions.storedItems. There is also one for migrating from SDWebImage. Switching from Kingfisher? There is now a dedicated guide available to assist you. The compiler will assist you with the migration, but if something isn't clear, there is a comprehensive migration guide available. #NUKE 10 POBIERACZEK CODE#
It has many improvements to the docs (for example, a complete rewrite of the caching guide), more inline comments, more unit tests (Nuke now has ~100% test coverage with 2x number of lines of code in the test target compared to the main target). This release is also a massive step-up in the general quality of the framework. It brings big additions to the caching infrastructure, great SwiftUI and Combine support, and more ways to adjust the system to fit your needs. It is faster than the previous version (up to 30% improvement to some operations), more powerful, more ergonomic, and is even easier to learn and use.