Returns an array of ODataEntry* objects stored for the specified URL key.
Syntax
-
(
NSArray *
)
readEntriesForUrlKey
:
(
NSString *
)
urlKey
withError
:
(
NSError **
)
error
Parameters
-
urlKey –
URL that was originally used to retrieve the entries from the backend and cache it.
-
error –
uninitialized error object filled in case of error scenarios.
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;
}