DocumentStorageWithPayload
Defines a generic interface for document storage systems, supporting storing, retrieving, updating, and deleting documents. Each document can be associated with metadata or additional payload.
Parameters
Document
The type representing the document being stored.
Payload
The type representing additional metadata or payload associated with the document.
Inheritors
Functions
Link copied to clipboard
Iterates over the documents
Link copied to clipboard
Iterates through documents and their corresponding payloads
Link copied to clipboard
Retrieves the payload associated with the document identified by the given document ID.
Link copied to clipboard
Reads a document along with its associated payload based on the given document ID.