Suggested maximum size of NSCachesDirectory on iOS
Suggested maximum size of NSCachesDirectory on iOS
- Subject: Suggested maximum size of NSCachesDirectory on iOS
- From: Markus Spoettl <email@hidden>
- Date: Sun, 09 Jun 2013 23:13:56 +0200
Hi,
on iOS, is there any documentation on how much space an app should use at
most when storing things in the location returned by NSFileManagers's
-URLsForDirectory: with NSCachesDirectory? Are there any hard numbers (like for
example "never more than 1/20th of the entire disk", or something like that)? I
couldn't find the slightest hint.
I have an app that potentially produces a lot of cached data (downloaded from
the network). Caching is highly beneficial to its performance, so generally the
bigger the cache the better. Still, filling the device up until it's maxed out
doesn't seem a good thing to do.
Also, there's no mention on when cached files will get deleted (in case space
runs out). The only piece of documentation with respect to deletion I came
across is that cache files *may* not survive an update of the app. However, the
system surely will (have to) start deleting files before then if it runs out of
space, no?
Does anyone have any insights?
Thanks!
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden