readEntriesForUrlKey:withError: method

Returns an array of ODataEntry* objects stored for the specified URL key.

Syntax

- ( NSArray * ) readEntriesForUrlKey : ( NSString * ) urlKey withError : ( NSError ** ) error

Parameters

Returns

array of ODataEntry* objects that were cached.
 id<Caching> cacheLocal = [[Cache alloc] init];
 NSError* error = nil;
 NSArray* cachedEntries = [cacheLocal readEntriesForUrlKey:urlKey withError:&error];
 if (error)
 {
     NSLog("Read Error : %@", error);
     return;
 }