Simple and powerful API to work with NSData in IOS Cache, Documents and Temp folder.
- Extremely simple implementation and powerful API
- Separated GCD queues
- Callbacks based on blocks
- Safe file naming using MD5
- Using modern NSURL iOS API for file paths
- 100% bugs free. (Used in many projects)
NSString *uniqueKey = @"unique name";
[CMDataStorage.sharedDocumentsStorage storeData:data key:uniqueKey block:^(BOOL succeeds) {
//
}];
NSString *uniqueKey = @"unique name";
[CMDataStorage.sharedCacheStorage storeData:data key:uniqueKey block:^(BOOL succeeds) {
//
}];
NSString *uniqueKey = @"unique name";
[CMDataStorage.sharedCacheStorage dataForKey:uniqueKey block:^(NSData *data) {
//
}];
NSString *uniqueKey = @"unique name";
NSData *data = [CMDataStorage.sharedDocumentsStorage dataForKey:uniqueKey];
CMDataStorage is available under the MIT license. See the LICENSE file for more info.