Instance Method

initWithMemoryCapacity:diskCapacity:directoryURL:

Creates a URL cache object with the specified memory and disk capacities, in the specified directory.

Declaration

- (instancetype)initWithMemoryCapacity:(NSUInteger)memoryCapacity diskCapacity:(NSUInteger)diskCapacity directoryURL:(NSURL *)directoryURL;

Parameters

memoryCapacity

The memory capacity of the cache, in bytes.

diskCapacity

The disk capacity of the cache, in bytes.

directoryURL

The path to an on-disk directory at which to store the on-disk cache. If directory is nil, the cache uses a default directory.

Discussion

A disk cache measured in the tens of megabytes should be acceptable in most cases.

See Also

Creating a New Cache Object

- initWithMemoryCapacity:diskCapacity:diskPath:

Creates a URL cache object with the specified values.

Deprecated