Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
14 lines
412 B
Swift
14 lines
412 B
Swift
import Foundation
|
|
import TermindDomain
|
|
|
|
@MainActor
|
|
public protocol VaultPersisting: AnyObject {
|
|
func load() throws -> VaultSnapshot
|
|
func save(_ snapshot: VaultSnapshot, touching keys: Set<VaultRecordKey>) throws -> VaultMutationSet
|
|
func modificationDates() throws -> [VaultRecordKey: Date]
|
|
}
|
|
|
|
extension VaultPersisting {
|
|
public func modificationDates() throws -> [VaultRecordKey: Date] { [:] }
|
|
}
|