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
-
urlKey –
URL string against which the entries are cached.
-
error –
uninitialized error object filled in case of error scenarios.
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;
}