Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is stored in ~/Library/Caches/<my-app-bundle>/Cache.db? [closed]

I'm really wondering what is stored in the mentioned path?

A side question: May a developer use this path (at least the folder) to store his own temp data?

like image 690
cocoafan Avatar asked Sep 08 '09 10:09

cocoafan


People also ask

Is it safe to delete ~/ Library caches Mac?

Is it safe to delete Mac caches? It's good to be careful about deleting stuff from your Mac, but it's generally safe to remove cached data. You shouldn't run into any major issues if you delete cached files from system-level (/Library/Caches/) and user-level folders (~/Library/Caches/).

Can I delete everything in my Mac cache folder?

You can delete cache files on your Mac without having to worry about it acting up. This is because the important files will just load back when needed. However, you have to be careful not to delete files that are important for running your system.

What is cache Library?

Cache library (CacheLib) is a C++ library for accessing and managing cache data. It is a thread-safe API that enables developers to build and customize scalable, concurrent caches.


1 Answers

[...] what is stored [...] ?

Cached responses from webservers.

[...] use this path [...] ?

The directory is meant to use for application cache files. Get this path using:

NSArray* paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString* cacheDir = [paths objectAtIndex:0];
like image 200
Nikolai Ruhe Avatar answered Nov 12 '22 03:11

Nikolai Ruhe