createMemoryStorage
function createMemoryStorage(options?): MemoryAuditStorage;Defined in: src/storage/memory.ts:40
Create an in-memory MemoryAuditStorage with every optional capability.
watch fires callbacks on the next microtask after a write/remove;
compareAndSwap compares deep equality; events live in per-tenant arrays
ordered by seq (single-threaded JS makes append-with-conflict-check atomic
in-process).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
MemoryStorageOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { createMemoryStorage } from "@xtandard/audit/storage/memory";
const storage = createMemoryStorage();