SerializedDataStorage is a simple caching class. It uses NSKeyedArchiver, dont use Core Data library.
insert object
NSDictionary *dictionary = @{@"id":@(1)};
SSData *record = [[SSData alloc] initWithDictionary:dictionary];
[[SerializedDataStorage sharedStorage] stackRecord:record];
select all of objects
- (NSArray *)fetchAll;
select objects with conditions
- (NSArray *)fetchResultsByPredicate:(NSPredicate *)predicate;
select object with identifier
- (id)fetchResultByIdentifier:(id)identifier;
- UnitTest
- bugfix Demo.project
SerializedDataStorage is available under the MIT license.