Johnny is a generic caching library written for Swift 4.

Features:

  • Multiplatform, supporting iOS, macOS, tvOS & watchOS
  • First-level memory cache using NSCache
  • Second-level LRU disk cache
  • Disk access in background thread (always when saving, optionally when fetching)
  • Syncronous & Asynchronous API support
  • Automatic cache eviction on memory warnings & disk capacity reached
  • Unit tested
  • Concise, well-structured code to encourage contributions

Leave a Reply