I’ve mentioned a number of libraries for easier caching of assets, most recently the Swift based background image downloading library with built in caching called Skeets.
Here’s an easy to use caching library called CacheKit from David Beck that allows you to specify which objects are to be cached, and provides options for caching to memory, to disk or to a SQLite database.
Some of the features of CacheKit include:
– Syntax similar to NSMutableDictionary or Cache
– Expiration time support
– Memory, Disk, SQLite caching
– Error checking in case the object does not exist (such as if it was removed due to a memory warning)
For the caching to work your objects simple need to conform to NSCoding.
This code example from the readme shows how to save an object to CacheKit with expiration:
[cache objectForKey:@"A"]; // returns @1
// 31 seconds later…
[cache objectForKey:@"A"]; // returns nil
You can find CacheKit on Github here.
A nice library for easy cache implementation.
- Open Source Swift Library Providing Easy Background Image Downloading And Caching
- iOS Library Providing Easy Resource Downloading And Automatic Memory/Disk Caching
- Awesome Easy To Use Key/Value Store With Automatic Disk And Memory Caching
- Using iPhone Core Data vs. A Database
- Open Source iOS Library Providing A Blocks Driven Syntax For Working With SQLite Databases
Original article: Open Source iOS Library Providing Simple And Flexible Memory, Disk Or SQLite Database Based Caching
©2014 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.




