当我使用扩展功能将图像设置为UIImageView
(缩放)时使用 Haneke Swift,我.hnk_setImageFromUrl
如何才能再次从缓存中删除它。我试过了:
profileImageView.hnk_setImageFromURL(NSURL(string: imageUrl)!)
Shared.imageCache.remove(key: imageUrl!)
检查文件系统并读取代码,它只删除HanekeGlobals.Cache.OriginalFormatName
仍然会导致 Auto*aspectfill 缓存中的缓存图像的图像
shared-images/auto-160.0x160.0-aspectfill:
-rw-r--r-- 1 user1 staff 123123 9 Jan 13:26 https%3A%2F%2Fapi.example.com%2Fpubapi%2Fusers%2Fuser%2Fpicture`
这是预期的行为吗?
当然,完全清除缓存总是一个想法
Shared.imageCache.removeAll()