SwiftclassSessionSyncEngine
class SessionSyncEngine.MetadataStore
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
Members 27
- deinit
deinit - field
let deviceObsoletionDuration: Double+0x10 - field
var initialSyncPairedDeviceIdentifiers: Set<String>+0x38 - field
let maximumUnsyncedRecordCount: Int+0x20 - field
var recordIDSyncDatesByPairedDeviceIdentifier: [String : [SessionSyncEngine.RecordID : Foundation.Date]]+0x30 - field
var recordMetadataByRecordID: [SessionSyncEngine.RecordID : SessionSyncEngine.RecordMetadata]+0x28 - field
let tombstoneObsoletionDuration: Double+0x18 - func
deletedRecordIDs(for: String) -> [SessionSyncEngine.RecordID] - func
forget(recordID: SessionSyncEngine.RecordID) -> () - func
garbageCollect() -> () - func
hasMetadata(for: String) -> Bool - func
hasPerformedInitialSync(for: String) -> Bool - func
isValid(at: Foundation.Date) -> Bool - func
modifiedRecordIDs(for: String) -> [SessionSyncEngine.RecordID] - func
purge() -> () - func
recordIDs(minus: [SessionSyncEngine.RecordID]) -> [SessionSyncEngine.RecordID] - func
recordMetadata(for: SessionSyncEngine.RecordID) -> SessionSyncEngine.RecordMetadata? - func
remove(pairedDeviceIdentifier: String) -> () - func
set(deletedDate: Foundation.Date, for: [SessionSyncEngine.RecordID]) -> () - func
set(lastModifiedDate: Foundation.Date, for: [SessionSyncEngine.RecordID]) -> () - func
set(syncDate: Foundation.Date, forRecordsMatching: [SessionSyncEngine.RecordMetadata], pairedDeviceIdentifier: String) -> () - func
set(syncDate: Foundation.Date, for: [SessionSyncEngine.RecordID], pairedDeviceIdentifier: String) -> () - func
setPerformedInitialSync(for: String) -> () - func
unknownRecordIDs(in: [SessionSyncEngine.RecordID]) -> [SessionSyncEngine.RecordID] - func
update(metadata: [SessionSyncEngine.RecordMetadata]) -> () - init
SessionSyncEngine.MetadataStore.__allocating_init(persistentStore: SessionSyncEngine.MetadataPersisting) -> SessionSyncEngine.MetadataStore - init
SessionSyncEngine.MetadataStore.__allocating_init(deviceObsoletionDuration: Double, tombstoneObsoletionDuration: Double, maximumUnsyncedRecordCount: Int, persistentStore: SessionSyncEngine.MetadataPersisting?) -> SessionSyncEngine.MetadataStore
Header
class MetadataStore { let deviceObsoletionDuration: Swift.Double let tombstoneObsoletionDuration: Swift.Double let maximumUnsyncedRecordCount: Swift.Int var recordMetadataByRecordID: [SessionSyncEngine.RecordID : SessionSyncEngine.RecordMetadata] var recordIDSyncDatesByPairedDeviceIdentifier: [Swift.String : [SessionSyncEngine.RecordID : Foundation.Date]] var initialSyncPairedDeviceIdentifiers: Swift.Set<Swift.String> init(deviceObsoletionDuration: Swift.Double, tombstoneObsoletionDuration: Swift.Double, maximumUnsyncedRecordCount: Swift.Int, persistentStore: (any SessionSyncEngine.MetadataPersisting)?) init(persistentStore: any SessionSyncEngine.MetadataPersisting) final func hasPerformedInitialSync(for: Swift.String) -> Swift.Bool final func setPerformedInitialSync(for: Swift.String) final func hasMetadata(for: Swift.String) -> Swift.Bool final func recordMetadata(for: SessionSyncEngine.RecordID) -> SessionSyncEngine.RecordMetadata? final func garbageCollect() final func deletedRecordIDs(for: Swift.String) -> [SessionSyncEngine.RecordID] final func unknownRecordIDs(in: [SessionSyncEngine.RecordID]) -> [SessionSyncEngine.RecordID] final func modifiedRecordIDs(for: Swift.String) -> [SessionSyncEngine.RecordID] final func set(deletedDate: Foundation.Date, for: [SessionSyncEngine.RecordID]) final func set(lastModifiedDate: Foundation.Date, for: [SessionSyncEngine.RecordID]) final func set(syncDate: Foundation.Date, forRecordsMatching: [SessionSyncEngine.RecordMetadata], pairedDeviceIdentifier: Swift.String) final func set(syncDate: Foundation.Date, for: [SessionSyncEngine.RecordID], pairedDeviceIdentifier: Swift.String) final func purge() final func forget(recordID: SessionSyncEngine.RecordID) final func remove(pairedDeviceIdentifier: Swift.String) final func update(metadata: [SessionSyncEngine.RecordMetadata]) final func isValid(at: Foundation.Date) -> Swift.Bool final func recordIDs(minus: [SessionSyncEngine.RecordID]) -> [SessionSyncEngine.RecordID] deinit }