CacheManager
public class CacheManager : NSObject, @unchecked Sendable
缓存管理器
-
自定义缓存创建句柄,默认nil
Declaration
Swift
public static var factoryBlock: (@Sendable (CacheType) -> CacheProtocol?)? { get set }
-
获取指定类型的缓存单例对象
Declaration
Swift
public static func manager(type: CacheType) -> CacheProtocol?