Skip to content
forked from kgn/KGNCache

Simple disk + memory cache with date expirations

License

Notifications You must be signed in to change notification settings

tariq235/KGNCache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KGNCache

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.

Release License

Build Status Carthage Compatible CocoaPods Version CocoaPods Platforms

Twitter Follow Star

Installing

Carthage

github "kgn/KGNCache"

CocoaPods

pod 'KGNCache'

Examples

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

About

Simple disk + memory cache with date expirations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 93.6%
  • Ruby 3.5%
  • Objective-C 2.9%