John Lane
John Lane

Reputation: 1132

NSURLRequest memory size for cache in iOS

Is the memorySize you specify for the cache (memory) mapped to the disk or is it real memory that is being used?

Upvotes: 0

Views: 657

Answers (2)

Nick Dowell
Nick Dowell

Reputation: 2120

memoryCapacity specifies the size of the in-memory cache. It is not mapped to disk, it is real memory.

diskCapacity specifies the size of the on-disk cache - on iOS 5 and later.

Upvotes: 1

amitkumar3968
amitkumar3968

Reputation: 22

IT is the cache (memory) mapped to the disk .not the real memory.

Upvotes: 0

Related Questions