API Reference
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
import { multiWriterAppendLogStorage } from "@graphrefly/ts/storage";
Signature
function multiWriterAppendLogStorage(opts: MultiWriterAppendLogOptions<T>): MultiWriterAppendLogStorageTier<T>
Parameters
| Parameter | Type | Description |
|---|---|---|
opts | MultiWriterAppendLogOptions<T> | Options that configure the helper. |
Returns
A MultiWriterAppendLogStorageTier<T> value.
Example
import { multiWriterAppendLogStorage } from "@graphrefly/ts/storage";
Source
packages/ts/src/storage/append-log.ts