SwiftactorCipherML
actor CipherML.Cache
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Actor
Members 27
- var
static var cacheFileName: String { get } - deinit
deinit - field
var $defaultActor: Builtin.DefaultActorStorage+0x10 - field
let modelContainer: SwiftData.ModelContainer+0x70 - func
appendPreparedKey(group: String, uuid: Foundation.UUID, configHash: Foundation.Data, secretKey: CipherML.SecretKey) throws -> () - func
consumePreparedKey(group: String, configHash: Foundation.Data, notOlderThan: Foundation.Date?) throws -> (uuid: Foundation.UUID, secretKey: CipherML.SecretKey)? - func
getConfig(String) throws -> CipherML.AspireApiConfig? - func
getConfigResponse(for: [String]) throws -> CipherML.AspireApiConfigResponse? - func
getConfigs<A where A: Sequence, A.Element == String>(for: A) throws -> [CipherML.AspireApiConfig] - func
getEvaluationKeyConfig(Foundation.Data) throws -> CipherML.AspireHeEvaluationKeyConfig? - func
preparedKeyCount(group: String, configHash: Foundation.Data, notOlderThan: Foundation.Date?) throws -> Int - func
preparedKeyDemandRate(useCase: String, asOf: Foundation.Date) throws -> Double - func
prune(removingUsecases: Set<String>) throws -> () - func
pruneEvaluationKeyConfigs(keeping: Set<Foundation.Data>) throws -> () - func
prunePreparedKeyDemand(activeUseCases: Set<String>) throws -> () - func
prunePreparedKeys(activeConfigHashes: Set<Foundation.Data>, olderThan: Foundation.Date) throws -> () - func
recordPreparedKeyDemand(useCase: String, now: Foundation.Date) throws -> () - func
setConfig(key: String, value: CipherML.AspireApiConfig?) throws -> () - func
setEvaluationKeyConfig(key: Foundation.Data, value: CipherML.AspireHeEvaluationKeyConfig?) throws -> () - func
updateConfigs(keys: [String], with: [String : CipherML.AspireApiConfig]) throws -> () - func
updateConfigs([String : CipherML.AspireApiConfig]) throws -> () - func
updateEvaluationKeyConfigs([Foundation.Data : CipherML.AspireHeEvaluationKeyConfig]) throws -> () - func
usedEvalKeyConfigHashes() throws -> Set<Foundation.Data> - func
withContext<A>(readOnly: Bool, _: (SwiftData.ModelContext) throws -> A) throws -> A - init
CipherML.Cache.__allocating_init(modelContainer: SwiftData.ModelContainer) -> CipherML.Cache - init
CipherML.Cache.__allocating_init(cacheFile: Foundation.URL?) throws -> CipherML.Cache - var
var unownedExecutor: UnownedSerialExecutor { get }
Header
actor Cache { let modelContainer: SwiftData.ModelContainer init(modelContainer: SwiftData.ModelContainer) func withContext<A>(readOnly: Swift.Bool, _: (_: SwiftData.ModelContext) throws -> A) throws -> A func getConfig(_: Swift.String) throws -> CipherML.AspireApiConfig? func setConfig(key: Swift.String, value: CipherML.AspireApiConfig?) throws func updateConfigs(keys: [Swift.String], with: [Swift.String : CipherML.AspireApiConfig]) throws func updateConfigs(_: [Swift.String : CipherML.AspireApiConfig]) throws func usedEvalKeyConfigHashes() throws -> Swift.Set<Foundation.Data> func getEvaluationKeyConfig(_: Foundation.Data) throws -> CipherML.AspireHeEvaluationKeyConfig? func setEvaluationKeyConfig(key: Foundation.Data, value: CipherML.AspireHeEvaluationKeyConfig?) throws func updateEvaluationKeyConfigs(_: [Foundation.Data : CipherML.AspireHeEvaluationKeyConfig]) throws func pruneEvaluationKeyConfigs(keeping: Swift.Set<Foundation.Data>) throws func prune(removingUsecases: Swift.Set<Swift.String>) throws func getConfigs<A>(for: A) throws -> [CipherML.AspireApiConfig] where A: Swift.Sequence, A.Element == Swift.String func getConfigResponse(for: [Swift.String]) throws -> CipherML.AspireApiConfigResponse? func appendPreparedKey(group: Swift.String, uuid: Foundation.UUID, configHash: Foundation.Data, secretKey: CipherML.SecretKey) throws func consumePreparedKey(group: Swift.String, configHash: Foundation.Data, notOlderThan: Foundation.Date?) throws -> (uuid: Foundation.UUID, secretKey: CipherML.SecretKey)? func preparedKeyCount(group: Swift.String, configHash: Foundation.Data, notOlderThan: Foundation.Date?) throws -> Swift.Int func prunePreparedKeys(activeConfigHashes: Swift.Set<Foundation.Data>, olderThan: Foundation.Date) throws func recordPreparedKeyDemand(useCase: Swift.String, now: Foundation.Date) throws func preparedKeyDemandRate(useCase: Swift.String, asOf: Foundation.Date) throws -> Swift.Double func prunePreparedKeyDemand(activeUseCases: Swift.Set<Swift.String>) throws init(cacheFile: Foundation.URL?) throws var unownedExecutor: Swift.UnownedSerialExecutor { get } static let cacheFileName: Swift.String deinit }