SDURLCache
URLCache subclass with on-disk cache support on iPhone/iPad
About
On iPhone OS, Apple did remove on-disk cache support for unknown reason. Some will say it's to save flash-drive life, others will arg it's to save disk capacity. As it is explained in the NSURLCacheStoragePolicy, the NSURLCacheStorageAllowed constant is always treated as NSURLCacheStorageAllowedInMemoryOnly and there is no way to force it back, the code is certainly gone on this platform. For whatever reason Apple removed this feature, you may be interested by having on-disk HTTP request caching in your application. SDURLCache gives back this feature to this iPhone OS for you.
Open Source Health
- Stars
- 795
- Forks
- 239
- License
- MIT
- Last commit
- 10 years ago
Alternatives to SDURLCache
Valkeyby ValkeyA flexible distributed key-value database that is optimized for caching and other realtime workloads.
Tortillaby tortillaWrapping web APIs made easy.
Queryby TanStackPowerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
Cacheby SymfonyProvides extended PSR-6, PSR-16 (and tags) implementations
Picassoby SquareA powerful image downloading and caching library for Android
Resources & Links
Related Categories
Using SDURLCache?
Track its cost next to the rest of your stack and get a reminder before it renews.
Add to my stackVendor
Olivier Poitrey
Director of Engineering at Netflix Co-Founder & ex-CTO of Dailymotion Co-Founder of NextDNS
