CacheKit是一个适用于iOS、令人愉快的缓存框架,一行代码实现缓存。支持存储泛型对象,并且,它是线程安全的!
CacheManager.shared.set(object: <#T##Decodable & Encodable#>, forKey: <#T##String#>)
CacheManager.shared.object(forKey: <#T##String#>, type: <#T##(Decodable & Encodable).Protocol#>)
CacheManager.shared.removeObject(forKey: <#T##String#>)
CacheManager.shared.containsObject(forKey: <#T##String#>)
CacheKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'CacheKit'
洪陪, [email protected], 麻烦给个star、谢谢啦
CacheKit is available under the MIT license. See the LICENSE file for more info.