Diskcached is simple disk cache for iOS.
- Simple methods
- Writing asynchronously to disk
- Controlling to clean disk when it called
dealloc
There are two ways to use this in your project:
-
Copy the Diskcached class files into your project
-
Install with CocoaPods to write Podfile
platform :ios
pod 'Diskcached', '~> 0.0.1'
Diskcached *cached = [[Diskcached alloc] init];
[cached setObject:object forKey:@"key"];
id result = [cached objectForKey:@"key"];
- Dont implement hash function in Diskcached. If need, generate the key with hash function.
Diskcached is available under the MIT license.