Files
Termind/Frameworks/TermindApplication/VaultPersisting.swift
T

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] { [:] }
}