-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using URLCache instead of NSCache #15
Comments
Recent AsyncImage official implementation by Apple uses URLCache underneath, so this repository is not needed any more... |
…and the reference to this info you have given is…where? |
@MKGitHub the AsyncImage @EzequielAdrianM referred to is documented here: https://developer.apple.com/documentation/swiftui/asyncimage However, that class is only available for iOS 15+. |
My apologies @MKGitHub , the official AsyncImage by Apple does not implement any caching, it just re downloads the image every single time you request it. For real disk and memory caching we ended up using Kingfisher |
URLCache is both in-memory and on-disk cache, and it doesn't allocate a chunk of memory for it's data. You can define it's in-memory and on-disk size, which is more flexible. URLCache will persist the cached data until the system runs low on disk space.
The text was updated successfully, but these errors were encountered: