KGNCache
is a memory and file based cache. If the object exists on the file system it’s returned from there and added to the memory cache. KGNCache
uses NSCache
under the hood for the memory cache so will automatically clear out objects under memory pressure.
github "kgn/KGNCache"
pod 'KGNCache'
let name = "Steve Jobs"
let cache = Cache(named: "names")
cache.setObject(name, forKey: "name")
cache.objectForKey(key) {
print($0) // Steve Jobs
}
TODO:
- Travis
- Badges
- Tests
- Carthage
- CocoaPods (Just need to publish)
- Description (Add expiration example)
- Documentation
- AppleTV
- AppleWatch
- Prebuilt Frameworks
- Travis Test Matrix