createMemoryStorage
function createMemoryStorage(options?): MemoryWebhooksStorage;Defined in: src/storage/memory.ts:36
Create an in-memory WebhooksStorage with every optional capability.
watch fires callbacks on the next microtask after a write/remove;
compareAndSwap compares structurally; claimDue scans the due index across
all applications and claims each delivery with a compare-and-swap.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
MemoryStorageOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { createMemoryStorage } from "@xtandard/webhooks/storage/memory";
const storage = createMemoryStorage();