multiWriterAppendLogStorage()
Build a D85 multi-writer append log over a conditional-create capable KV tier.
Sequence allocation is passive storage work: each writer proposes a padded key and retries the next key when another writer already created that slot. This does not provide general CAS, locks, leases, transactions, unsafe truncation, WAL replay, or graph restore semantics.
Import
Section titled “Import”import { multiWriterAppendLogStorage } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function multiWriterAppendLogStorage(opts: MultiWriterAppendLogOptions<T>): MultiWriterAppendLogStorageTier<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
opts | MultiWriterAppendLogOptions<T> | Options that configure the helper. |
Returns
Section titled “Returns”A MultiWriterAppendLogStorageTier<T> value.
Example
Section titled “Example”import { multiWriterAppendLogStorage } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/append-log.ts