Skip to content

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.

Parameter Type
options? MemoryStorageOptions

MemoryWebhooksStorage

import { createMemoryStorage } from "@xtandard/webhooks/storage/memory";
const storage = createMemoryStorage();