clearLocalEntryForEntryId:withError: method
Clears the local entry present in the local cache based on the entry ID passed.
Syntax
-
(
BOOL
)
clearLocalEntryForEntryId
:
(
NSString *
)
entryId
withError
:
(
NSError **
)
error
Parameters
-
entryID –
ID for which the entry should be removed from the local cache.
-
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;
NSString* deleteEntryId = [deleteEntry getEntryID];
if ([cacheLocal clearLocalEntryForEntryId:deleteEntryId withError:&error]) {
NSLog("Clear Local Entry Error : %@", error);
return;
}