deleteEntryForEntryId:withError: method
Marks an entry from cache for deletion.
Syntax
-
(
BOOL
)
deleteEntryForEntryId
:
(
NSString *
)
entryId
withError
:
(
NSError **
)
error
Parameters
-
entryId –
ID of the entry to be deleted using HTTP DELETE request.
-
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* deletedEntryId = [deletedEntry getEntryID[;
if ([cacheLocal deleteEntryForEntryId:deletedEntryId withError:&error]) {
NSLog("Delete Entry Error : %@", error);
return;
}