Welcome to SwiftCache! SwiftCache is an efficient and effective replacement for NSCache in Swift!
.package("https://github.com/thackerdynasty/SwiftCache.git", from: "1.0.0")
pod 'NativeCache' (This is NOT a typo, SwiftCache was already taken on CocoaPods)
It's pretty simple:
import Foundation
import SwiftCache
let cache = Cache()
Full documentation can be found here.
In order to test in xcode, open the folder in xcode, then go to the tests tab, make sure SwiftCache.xctestplan is selected, and then run the tests!
cd to the cloned repo, and then run swift test.