SwiftclassMLModelCache
class MLModelCache.CacheManager
Members 8
- deinit
deinit - field
let activeSessions: Synchronization.Mutex<Set<String>> - field
let hashFunction: @Sendable (String) -> String - field
let rootURL: Foundation.URL - func
asset(at: String) throws -> Foundation.URL? - func
createAsset(at: String) throws -> MLModelCache.AssetSession - func
purgeAsset(at: String) throws -> () - init
MLModelCache.CacheManager.__allocating_init(hashFunction: @Sendable (String) -> String, purgeProtocols: [MLModelCache.PurgeProtocol]) -> MLModelCache.CacheManager
Header
class CacheManager { let rootURL: Foundation.URL let hashFunction: @Sendable (_: Swift.String) -> Swift.String let activeSessions: Synchronization.Mutex<Swift.Set<Swift.String>> init(hashFunction: @escaping @Sendable (_: Swift.String) -> Swift.String, purgeProtocols: [any MLModelCache.PurgeProtocol]) final func purgeAsset(at: Swift.String) throws final func createAsset(at: Swift.String) throws -> MLModelCache.AssetSession final func asset(at: Swift.String) throws -> Foundation.URL? deinit }