Skip to content

@xtandard/entitlements/storage/memory

In-memory state storage (zero deps; tests, dev, single-process apps).

import { … } from "@xtandard/entitlements/storage/memory";
Name Summary
createMemoryStorage Create an in-memory storage implementing both watch (callbacks fire on the next microtask after a write/remove) and compareAndSwap (structural equality; race-free in-process).
Name Summary
MemoryEntitlementsStorage The memory storage: watchable and compare-and-swap capable.
MemoryStorageOptions Options for createMemoryStorage.