SwiftstructSecureVectorStore
SecureVectorStorage
struct SecureVectorStore.SecureVectorStorage
Members 15
- field
let codec: SecureVectorStore.Codec+0x50 - field
let fileHandler: SecureVectorStore.NormalFileHandling+0x0 - field
let ops: SecureVectorStore.StorageOperations+0x28 - func
clear() throws -> () - func
count() throws -> Int - func
drop(key: Foundation.UUID) throws -> () - func
drop(keys: [Foundation.UUID]) throws -> () - func
listKeys() throws -> [Foundation.UUID] - func
load<A where A: SecureVectorStore.StorableItem>(key: Foundation.UUID) throws -> A? - func
load<A where A: SecureVectorStore.StorableItem>(keys: [Foundation.UUID]) throws -> [A] - func
loadForEach<A where A: SecureVectorStore.StorableItem>(keys: [Foundation.UUID], callback: (A) throws -> Bool) throws -> () - func
save<A where A: SecureVectorStore.StorableItem>(key: Foundation.UUID, value: A) throws -> () - func
start() throws -> () - func
stop() -> () - init
init(baseDirectory: Foundation.URL) throws -> SecureVectorStore.SecureVectorStorage
Header
struct SecureVectorStorage { struct ItemWrapper<A> where A: SecureVectorStore.StorableItem { enum CodingKeys { case itemTypeIdentifier case item } let itemTypeIdentifier: Swift.String let item: A } let fileHandler: any SecureVectorStore.NormalFileHandling let ops: SecureVectorStore.StorageOperations let codec: any SecureVectorStore.Codec init(baseDirectory: Foundation.URL) throws func loadForEach<A>(keys: [Foundation.UUID], callback: (_: A) throws -> Swift.Bool) throws where A: SecureVectorStore.StorableItem func drop(key: Foundation.UUID) throws func drop(keys: [Foundation.UUID]) throws func load<A>(key: Foundation.UUID) throws -> A? where A: SecureVectorStore.StorableItem func load<A>(keys: [Foundation.UUID]) throws -> [A] where A: SecureVectorStore.StorableItem func save<A>(key: Foundation.UUID, value: A) throws where A: SecureVectorStore.StorableItem func stop() func clear() throws func count() throws -> Swift.Int func start() throws func listKeys() throws -> [Foundation.UUID] }