createMemoryStorage
function createMemoryStorage(options?): MemoryLinksStorage;Defined in: src/storage/memory.ts:36
Create an in-memory LinksStorage. watch fires callbacks on the
next microtask after a write/remove; compareAndSwap compares deep equality.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
MemoryStorageOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { createMemoryStorage } from "@xtandard/links/storage/memory";
const storage = createMemoryStorage();