SwiftactorCipherML

actor CipherML.Cache

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 27

  1. varstatic var cacheFileName: String { get }
  2. deinitdeinit
  3. fieldvar $defaultActor: Builtin.DefaultActorStorage+0x10
  4. fieldlet modelContainer: SwiftData.ModelContainer+0x70
  5. funcappendPreparedKey(group: String, uuid: Foundation.UUID, configHash: Foundation.Data, secretKey: CipherML.SecretKey) throws -> ()
  6. funcconsumePreparedKey(group: String, configHash: Foundation.Data, notOlderThan: Foundation.Date?) throws -> (uuid: Foundation.UUID, secretKey: CipherML.SecretKey)?
  7. funcgetConfig(String) throws -> CipherML.AspireApiConfig?
  8. funcgetConfigResponse(for: [String]) throws -> CipherML.AspireApiConfigResponse?
  9. funcgetConfigs<A where A: Sequence, A.Element == String>(for: A) throws -> [CipherML.AspireApiConfig]
  10. funcgetEvaluationKeyConfig(Foundation.Data) throws -> CipherML.AspireHeEvaluationKeyConfig?
  11. funcpreparedKeyCount(group: String, configHash: Foundation.Data, notOlderThan: Foundation.Date?) throws -> Int
  12. funcpreparedKeyDemandRate(useCase: String, asOf: Foundation.Date) throws -> Double
  13. funcprune(removingUsecases: Set<String>) throws -> ()
  14. funcpruneEvaluationKeyConfigs(keeping: Set<Foundation.Data>) throws -> ()
  15. funcprunePreparedKeyDemand(activeUseCases: Set<String>) throws -> ()
  16. funcprunePreparedKeys(activeConfigHashes: Set<Foundation.Data>, olderThan: Foundation.Date) throws -> ()
  17. funcrecordPreparedKeyDemand(useCase: String, now: Foundation.Date) throws -> ()
  18. funcsetConfig(key: String, value: CipherML.AspireApiConfig?) throws -> ()
  19. funcsetEvaluationKeyConfig(key: Foundation.Data, value: CipherML.AspireHeEvaluationKeyConfig?) throws -> ()
  20. funcupdateConfigs(keys: [String], with: [String : CipherML.AspireApiConfig]) throws -> ()
  21. funcupdateConfigs([String : CipherML.AspireApiConfig]) throws -> ()
  22. funcupdateEvaluationKeyConfigs([Foundation.Data : CipherML.AspireHeEvaluationKeyConfig]) throws -> ()
  23. funcusedEvalKeyConfigHashes() throws -> Set<Foundation.Data>
  24. funcwithContext<A>(readOnly: Bool, _: (SwiftData.ModelContext) throws -> A) throws -> A
  25. initCipherML.Cache.__allocating_init(modelContainer: SwiftData.ModelContainer) -> CipherML.Cache
  26. initCipherML.Cache.__allocating_init(cacheFile: Foundation.URL?) throws -> CipherML.Cache
  27. varvar unownedExecutor: UnownedSerialExecutor { get }
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
}