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

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;
 }