WriteStorage

Storage interface that provides the ability to write (add and update) documents.

Type Parameters

Document

The type of the documents being stored.

Functions

Link copied to clipboard
abstract suspend fun add(documents: List<Document>, namespace: String? = null): List<String>

Adds new documents to the storage.

Link copied to clipboard
abstract suspend fun update(documents: Map<String, Document>, namespace: String? = null): List<String>

Updates existing documents in the storage.