You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble figuring out how to use the normal caching for most urls while also needing to manually cache an image so it can be used throughout the app's UI and ensuring it never gets cleaned up. Is that possible, or would I need multiple different caches?
The text was updated successfully, but these errors were encountered:
You would have to create a separate DataCache to some directory that won't be cleaned up automatically by the system, like documentDirectory. For "never gets cleaned up", you can probably set DataCache.sweepInterval to something absurdly high like Int.max but that's just a theory.
I'm having trouble figuring out how to use the normal caching for most urls while also needing to manually cache an image so it can be used throughout the app's UI and ensuring it never gets cleaned up. Is that possible, or would I need multiple different caches?
The text was updated successfully, but these errors were encountered: