-
单例
Declaration
Swift
public static let shared: CacheTool
-
内存缓存配置
Declaration
Swift
public var memoryConfig: MemoryConfig?
-
磁盘缓存配置
Declaration
Swift
public var diskConfig: DiskConfig?
-
Undocumented
Declaration
Swift
public func set(forKey key: String, data: APICachePackage, writeMode: APICacheWriteMode, expiry: APICacheExpiry, completion: ((Swift.Result<Void, Error>) -> Void)?)
-
Undocumented
Declaration
Swift
public func set(forKey key: String, data: APICachePackage, writeMode: APICacheWriteMode, expiry: APICacheExpiry) throws
-
Declaration
Swift
public func getValidObject(byKey key: String, completion: @escaping (Swift.Result<APICachePackage, Error>) -> Void)
-
Declaration
Swift
public func getValidObject(byKey key: String) throws -> APICachePackage