LocalData/Sources/LocalData/Protocols/StorageProviding.swift

8 lines
273 B
Swift

import Foundation
public protocol StorageProviding: Sendable {
func set<Value>(_ value: Value, for key: StorageKey<Value>) async throws
func get<Value>(_ key: StorageKey<Value>) async throws -> Value
func remove<Value>(_ key: StorageKey<Value>) async throws
}