Setup a default managedObjectCache instance of RKFetchRequestManagedObjectCache

This commit is contained in:
Blake Watters
2012-09-10 12:41:57 -04:00
parent 40ed221edf
commit 0379806796
3 changed files with 3 additions and 1 deletions

View File

@@ -218,6 +218,8 @@ extern NSString * const RKSQLitePersistentStoreSeedDatabasePathOption;
The managed object cache is used to accelerate intensive Core Data operations by
caching managed objects by their primary key value.
**Default**: An instance of `RKFetchRequestManagedObjectCache`.
@see RKManagedObjectCaching
@warning A nil managed object cache will result in a store that is unable to uniquely identify

View File

@@ -64,6 +64,7 @@ static RKManagedObjectStore *defaultStore = nil;
self = [super init];
if (self) {
self.managedObjectModel = managedObjectModel;
self.managedObjectCache = [RKFetchRequestManagedObjectCache new];
// Hydrate the defaultStore
if (! defaultStore) {

View File

@@ -50,7 +50,6 @@ static inline NSString * RKDescriptionForRequest(NSURLRequest *request)
}
return self;
RKHTTPRequestOperation *operation = [[RKHTTPRequestOperation alloc] initWithRequest:request];
}
- (void)setSuccessCallbackQueue:(dispatch_queue_t)successCallbackQueue