Read all persisted log entries by iterating storage keys.
Promise resolving to array of log entries
Initialize the global log storage.
Whether this is the first initialization
Promise that resolves when initialization is complete
Write log entries to storage. Each entry is keyed by its id. Implementations should skip entries whose id already exists to keep the log append-only.
Log entries to persist
Promise that resolves when all writes are complete
Global log entry persistence instance interface. Unlike other Persist instances, log storage has no context — there is a single global instance per process.
Each log entry is keyed by its id and the read operation iterates over all stored entries.
Custom adapters should implement this interface to override the default file-based log storage behavior.