SafeDK
Sign upAdd Your SDK

URLCache subclass with on-disk cache support

SDURLCache gives back the ability to have on-disk HTTP request caching in your application

Apple removed 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.

Main Features

- To save flash drive, SDURLCache doesn't cache on disk responses if cache expiration delay is lower than 5 minutes by default. You can change this behavior by changing the minCacheInterval property.

- Cache eviction is done automatically when disk capacity is reached in a periodic maintenance thread. All disk write operations are done in a separated thread so they can't block the main run loop.

SDK for Apple

Example A

Similar SDKs

MORE

Reviews

Rate Now
0
0
0
0
0
0

Start a new discussion about SDURLCache

×
0
/1000

More from this Developer

Login