po let $request = NSURLRequest(URL: $URL) (lldb) po let $data = NSURLCache.sharedURLCache(). cachedResponseForRequest(request)!. data (lldb) po let $path = “/Users/dealforest/cache.png” (lldb) po $data.writeToFile($path, atomically: true)
= NSURL(string: “http://~”) (lldb) po let $resource = Resource(downloadURL: $URL) (lldb) po let $cache = KingfisherManager.sharedManager.cache // memory (lldb) po let $image = $cache.retrieveImageInMemoryCacheForKey($resource.cacheKey) // disk (lldb) po let $image = $cache.retrieveImageInDiskCacheForKey($resource.cacheKey) (lldb) po let $data = UIImagePNGRepresentation($image)! (lldb) po $data.writeToFile(<path>, atomically: true)
analyse_image “http://~” [original] browser open [request] ok [cache] ok -> “<path_to>/cache.png” [Kingfisher] memory ok -> “<path_to>/kingfisher_memory.png” [Kingfisher] disk ok -> “<path_to>/kingfisher_disk.png”