clearCacheForUrlKey:withError: method

Clears the cache for the URL key passed from all the caches, including the delta token and document cache.

Syntax

- ( BOOL ) clearCacheForUrlKey : ( NSString * ) urlKey withError : ( NSError ** ) error

Parameters

Returns

Boolean to indicate the outcome of the operation.
 id<Caching> cacheLocal = [[Cache alloc] init];
 NSError* error = nil;
 if ([cacheLocal clearCacheForUrlKey:urlKey withError:&error]) {
     NSLog("Clear Cache Error : %@", error);
     return;
 }